summaryrefslogtreecommitdiff
path: root/homebrew/qwt
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/qwt')
-rw-r--r--homebrew/qwt/.beer51
-rw-r--r--homebrew/qwt/.make.sh-auto4
-rw-r--r--homebrew/qwt/_metadata/description1
-rw-r--r--homebrew/qwt/_metadata/homepage1
-rw-r--r--homebrew/qwt/_metadata/name1
-rw-r--r--homebrew/qwt/_metadata/version1
-rwxr-xr-xhomebrew/qwt/download.sh1
-rwxr-xr-xhomebrew/qwt/patches.sh24
8 files changed, 84 insertions, 0 deletions
diff --git a/homebrew/qwt/.beer b/homebrew/qwt/.beer
new file mode 100644
index 000000000..3ded6b717
--- /dev/null
+++ b/homebrew/qwt/.beer
@@ -0,0 +1,51 @@
+{
+ "name": "Qwt",
+ "description": "Qt Widgets for Technical Applications",
+ "url": "https://downloads.sourceforge.net/project/qwt/qwt/6.1.3/qwt-6.1.3.tar.bz2",
+ "mirror": null,
+ "homepage": "https://qwt.sourceforge.io/",
+ "depends": [
+ {
+ "depend": "qt",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/designer/designer.pro b/designer/designer.pro\n",
+ "index c269e9d..c2e07ae 100644\n",
+ "--- a/designer/designer.pro\n",
+ "+++ b/designer/designer.pro\n",
+ "@@ -126,6 +126,16 @@ contains(QWT_CONFIG, QwtDesigner) {\n",
+ "\n",
+ " target.path = $${QWT_INSTALL_PLUGINS}\n",
+ " INSTALLS += target\n",
+ "+\n",
+ "+ macx {\n",
+ "+ contains(QWT_CONFIG, QwtFramework) {\n",
+ "+ QWT_LIB = qwt.framework/Versions/$${QWT_VER_MAJ}/qwt\n",
+ "+ }\n",
+ "+ else {\n",
+ "+ QWT_LIB = libqwt.$${QWT_VER_MAJ}.dylib\n",
+ "+ }\n",
+ "+ QMAKE_POST_LINK = install_name_tool -change $${QWT_LIB} $${QWT_INSTALL_LIBS}/$${QWT_LIB} $(DESTDIR)$(TARGET)\n",
+ "+ }\n",
+ " }\n",
+ " else {\n",
+ " TEMPLATE = subdirs # do nothing\n"
+ ]
+ }
+ ],
+ "install": [
+ "inreplace \"qwtconfig.pri\" do |s|",
+ "s.gsub! /^\\s*QWT_INSTALL_PREFIX\\s*=(.*)$/, \"QWT_INSTALL_PREFIX=#{prefix}\"",
+ "s.sub! %r{(= \\$\\$\\{QWT_INSTALL_PREFIX\\})/(plugins/designer)$},",
+ "\"\\\\1/lib/qt/\\\\2\""
+ ],
+ "version": "6.1.3",
+ "file": "qwt.rb"
+} \ No newline at end of file
diff --git a/homebrew/qwt/.make.sh-auto b/homebrew/qwt/.make.sh-auto
new file mode 100644
index 000000000..17ad740d9
--- /dev/null
+++ b/homebrew/qwt/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+inreplace "qwtconfig.pri" do |s|
+s.gsub! /^\s*QWT_INSTALL_PREFIX\s*=(.*)$/, "QWT_INSTALL_PREFIX=#{prefix}"
+s.sub! %r{(= \$\$\{QWT_INSTALL_PREFIX\})/(plugins/designer)$}, "\\1/lib/qt/\\2"
diff --git a/homebrew/qwt/_metadata/description b/homebrew/qwt/_metadata/description
new file mode 100644
index 000000000..5c2437b05
--- /dev/null
+++ b/homebrew/qwt/_metadata/description
@@ -0,0 +1 @@
+Qt Widgets for Technical Applications
diff --git a/homebrew/qwt/_metadata/homepage b/homebrew/qwt/_metadata/homepage
new file mode 100644
index 000000000..e0ab450e9
--- /dev/null
+++ b/homebrew/qwt/_metadata/homepage
@@ -0,0 +1 @@
+https://qwt.sourceforge.io/
diff --git a/homebrew/qwt/_metadata/name b/homebrew/qwt/_metadata/name
new file mode 100644
index 000000000..8435671cc
--- /dev/null
+++ b/homebrew/qwt/_metadata/name
@@ -0,0 +1 @@
+Qwt
diff --git a/homebrew/qwt/_metadata/version b/homebrew/qwt/_metadata/version
new file mode 100644
index 000000000..88d06f108
--- /dev/null
+++ b/homebrew/qwt/_metadata/version
@@ -0,0 +1 @@
+6.1.3
diff --git a/homebrew/qwt/download.sh b/homebrew/qwt/download.sh
new file mode 100755
index 000000000..de32552e8
--- /dev/null
+++ b/homebrew/qwt/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/qwt/qwt/6.1.3/qwt-6.1.3.tar.bz2 \ No newline at end of file
diff --git a/homebrew/qwt/patches.sh b/homebrew/qwt/patches.sh
new file mode 100755
index 000000000..ac4758aa5
--- /dev/null
+++ b/homebrew/qwt/patches.sh
@@ -0,0 +1,24 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/designer/designer.pro b/designer/designer.pro
+index c269e9d..c2e07ae 100644
+--- a/designer/designer.pro
++++ b/designer/designer.pro
+@@ -126,6 +126,16 @@ contains(QWT_CONFIG, QwtDesigner) {
+
+ target.path = $${QWT_INSTALL_PLUGINS}
+ INSTALLS += target
++
++ macx {
++ contains(QWT_CONFIG, QwtFramework) {
++ QWT_LIB = qwt.framework/Versions/$${QWT_VER_MAJ}/qwt
++ }
++ else {
++ QWT_LIB = libqwt.$${QWT_VER_MAJ}.dylib
++ }
++ QMAKE_POST_LINK = install_name_tool -change $${QWT_LIB} $${QWT_INSTALL_LIBS}/$${QWT_LIB} $(DESTDIR)$(TARGET)
++ }
+ }
+ else {
+ TEMPLATE = subdirs # do nothing
+EOF