summaryrefslogtreecommitdiff
path: root/homebrew/qwtpolar
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/qwtpolar
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/qwtpolar')
-rw-r--r--homebrew/qwtpolar/.beer54
-rw-r--r--homebrew/qwtpolar/.make.sh-auto4
-rw-r--r--homebrew/qwtpolar/_metadata/description1
-rw-r--r--homebrew/qwtpolar/_metadata/homepage1
-rw-r--r--homebrew/qwtpolar/_metadata/name1
-rw-r--r--homebrew/qwtpolar/_metadata/version1
-rwxr-xr-xhomebrew/qwtpolar/download.sh1
-rwxr-xr-xhomebrew/qwtpolar/patches.sh24
8 files changed, 87 insertions, 0 deletions
diff --git a/homebrew/qwtpolar/.beer b/homebrew/qwtpolar/.beer
new file mode 100644
index 000000000..a7a9d01c1
--- /dev/null
+++ b/homebrew/qwtpolar/.beer
@@ -0,0 +1,54 @@
+{
+ "name": "Qwtpolar",
+ "description": "Library for displaying values on a polar coordinate system",
+ "url": "https://downloads.sourceforge.net/project/qwtpolar/qwtpolar/1.1.1/qwtpolar-1.1.1.tar.bz2",
+ "mirror": null,
+ "homepage": "https://qwtpolar.sourceforge.io/",
+ "depends": [
+ {
+ "depend": "qt",
+ "build-depend": false
+ },
+ {
+ "depend": "qwt",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/designer/designer.pro b/designer/designer.pro\n",
+ "index 24770fd..3ff0761 100644\n",
+ "--- a/designer/designer.pro\n",
+ "+++ b/designer/designer.pro\n",
+ "@@ -75,6 +75,16 @@ contains(QWT_POLAR_CONFIG, QwtPolarDesigner) {\n",
+ "\n",
+ " target.path = $${QWT_POLAR_INSTALL_PLUGINS}\n",
+ " INSTALLS += target\n",
+ "+\n",
+ "+ macx {\n",
+ "+ contains(QWT_POLAR_CONFIG, QwtPolarFramework) {\n",
+ "+ QWTP_LIB = qwtpolar.framework/Versions/$${QWT_POLAR_VER_MAJ}/qwtpolar\n",
+ "+ }\n",
+ "+ else {\n",
+ "+ QWTP_LIB = libqwtpolar.$${QWT_POLAR_VER_MAJ}.dylib\n",
+ "+ }\n",
+ "+ QMAKE_POST_LINK = install_name_tool -change $${QWTP_LIB} $${QWT_POLAR_INSTALL_LIBS}/$${QWTP_LIB} $(DESTDIR)$(TARGET)\n",
+ "+ }\n",
+ " }\n",
+ " else {\n",
+ " TEMPLATE = subdirs # do nothing\n"
+ ]
+ }
+ ],
+ "install": [
+ "cd \"doc\" do",
+ "doc.install \"html\"",
+ "man3.install Dir[\"man/man3/{q,Q}wt*\"]"
+ ],
+ "version": "1.1.1",
+ "file": "qwtpolar.rb"
+} \ No newline at end of file
diff --git a/homebrew/qwtpolar/.make.sh-auto b/homebrew/qwtpolar/.make.sh-auto
new file mode 100644
index 000000000..65697db6d
--- /dev/null
+++ b/homebrew/qwtpolar/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+cd "doc"
+doc.install "html"
+man3.install Dir["man/man3/{q,Q}wt*"]
diff --git a/homebrew/qwtpolar/_metadata/description b/homebrew/qwtpolar/_metadata/description
new file mode 100644
index 000000000..80311aa62
--- /dev/null
+++ b/homebrew/qwtpolar/_metadata/description
@@ -0,0 +1 @@
+Library for displaying values on a polar coordinate system
diff --git a/homebrew/qwtpolar/_metadata/homepage b/homebrew/qwtpolar/_metadata/homepage
new file mode 100644
index 000000000..0354ebbb3
--- /dev/null
+++ b/homebrew/qwtpolar/_metadata/homepage
@@ -0,0 +1 @@
+https://qwtpolar.sourceforge.io/
diff --git a/homebrew/qwtpolar/_metadata/name b/homebrew/qwtpolar/_metadata/name
new file mode 100644
index 000000000..a11aa8104
--- /dev/null
+++ b/homebrew/qwtpolar/_metadata/name
@@ -0,0 +1 @@
+Qwtpolar
diff --git a/homebrew/qwtpolar/_metadata/version b/homebrew/qwtpolar/_metadata/version
new file mode 100644
index 000000000..524cb5524
--- /dev/null
+++ b/homebrew/qwtpolar/_metadata/version
@@ -0,0 +1 @@
+1.1.1
diff --git a/homebrew/qwtpolar/download.sh b/homebrew/qwtpolar/download.sh
new file mode 100755
index 000000000..49ddbf940
--- /dev/null
+++ b/homebrew/qwtpolar/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/qwtpolar/qwtpolar/1.1.1/qwtpolar-1.1.1.tar.bz2 \ No newline at end of file
diff --git a/homebrew/qwtpolar/patches.sh b/homebrew/qwtpolar/patches.sh
new file mode 100755
index 000000000..db65683e8
--- /dev/null
+++ b/homebrew/qwtpolar/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 24770fd..3ff0761 100644
+--- a/designer/designer.pro
++++ b/designer/designer.pro
+@@ -75,6 +75,16 @@ contains(QWT_POLAR_CONFIG, QwtPolarDesigner) {
+
+ target.path = $${QWT_POLAR_INSTALL_PLUGINS}
+ INSTALLS += target
++
++ macx {
++ contains(QWT_POLAR_CONFIG, QwtPolarFramework) {
++ QWTP_LIB = qwtpolar.framework/Versions/$${QWT_POLAR_VER_MAJ}/qwtpolar
++ }
++ else {
++ QWTP_LIB = libqwtpolar.$${QWT_POLAR_VER_MAJ}.dylib
++ }
++ QMAKE_POST_LINK = install_name_tool -change $${QWTP_LIB} $${QWT_POLAR_INSTALL_LIBS}/$${QWTP_LIB} $(DESTDIR)$(TARGET)
++ }
+ }
+ else {
+ TEMPLATE = subdirs # do nothing
+EOF