summaryrefslogtreecommitdiff
path: root/homebrew/gupnp
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/gupnp')
-rw-r--r--homebrew/gupnp/.beer93
-rw-r--r--homebrew/gupnp/.make.sh-auto5
-rw-r--r--homebrew/gupnp/_metadata/description1
-rw-r--r--homebrew/gupnp/_metadata/homepage1
-rw-r--r--homebrew/gupnp/_metadata/name1
-rw-r--r--homebrew/gupnp/_metadata/version1
-rwxr-xr-xhomebrew/gupnp/download.sh1
-rwxr-xr-xhomebrew/gupnp/patches.sh38
8 files changed, 141 insertions, 0 deletions
diff --git a/homebrew/gupnp/.beer b/homebrew/gupnp/.beer
new file mode 100644
index 000000000..710a6f30a
--- /dev/null
+++ b/homebrew/gupnp/.beer
@@ -0,0 +1,93 @@
+{
+ "name": "Gupnp",
+ "description": "Framework for creating UPnP devices and control points",
+ "url": "https://download.gnome.org/sources/gupnp/1.2/gupnp-1.2.0.tar.xz",
+ "mirror": null,
+ "homepage": "https://wiki.gnome.org/Projects/GUPnP",
+ "depends": [
+ {
+ "depend": "gobject-introspection",
+ "build-depend": true
+ },
+ {
+ "depend": "meson",
+ "build-depend": true
+ },
+ {
+ "depend": "ninja",
+ "build-depend": true
+ },
+ {
+ "depend": "pkg-config",
+ "build-depend": true
+ },
+ {
+ "depend": "gettext",
+ "build-depend": false
+ },
+ {
+ "depend": "glib",
+ "build-depend": false
+ },
+ {
+ "depend": "gssdp",
+ "build-depend": false
+ },
+ {
+ "depend": "libsoup",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/libgupnp/meson.build b/libgupnp/meson.build\n",
+ "index b832acb..561b3cd 100644\n",
+ "--- a/libgupnp/meson.build\n",
+ "+++ b/libgupnp/meson.build\n",
+ "@@ -90,10 +90,20 @@ sources = files(\n",
+ " 'xml-util.c'\n",
+ " )\n",
+ "\n",
+ "+version = '0.0.0'\n",
+ "+version_arr = version.split('.')\n",
+ "+major_version = version_arr[0].to_int()\n",
+ "+minor_version = version_arr[1].to_int()\n",
+ "+micro_version = version_arr[2].to_int()\n",
+ "+current = major_version + minor_version + 1\n",
+ "+interface_age = micro_version\n",
+ "+darwin_versions = [current, '@0@.@1@'.format(current, interface_age)]\n",
+ "+\n",
+ " libgupnp = library(\n",
+ " 'gupnp-1.2',\n",
+ " sources + context_manager_impl + enums,\n",
+ "- version : '0.0.0',\n",
+ "+ version : version,\n",
+ "+ darwin_versions : darwin_versions,\n",
+ " dependencies : dependencies + system_deps,\n",
+ " c_args : context_manager_args,\n",
+ " include_directories: include_directories('..'),\n",
+ "diff --git a/meson.build b/meson.build\n",
+ "index 9cf4697..45fb0dc 100644\n",
+ "--- a/meson.build\n",
+ "+++ b/meson.build\n",
+ "@@ -1,4 +1,4 @@\n",
+ "-project('gupnp', 'c', version : '1.2.0')\n",
+ "+project('gupnp', 'c', version : '1.2.0', meson_version : '>= 0.48.0')\n",
+ " gnome = import('gnome')\n",
+ " pkg = import('pkgconfig')\n"
+ ]
+ }
+ ],
+ "install": [
+ "mkdir \"build\" do",
+ "system \"meson\", \"--prefix=#{prefix}\", \"..\"",
+ "system \"ninja\"",
+ "system \"ninja\", \"install\""
+ ],
+ "version": "1.2.0",
+ "file": "gupnp.rb"
+} \ No newline at end of file
diff --git a/homebrew/gupnp/.make.sh-auto b/homebrew/gupnp/.make.sh-auto
new file mode 100644
index 000000000..e4e4d32fd
--- /dev/null
+++ b/homebrew/gupnp/.make.sh-auto
@@ -0,0 +1,5 @@
+pkg:setup
+mkdir "build" && cd build
+meson --prefix=${PKG_TAPF} ..
+ninja
+ninja install
diff --git a/homebrew/gupnp/_metadata/description b/homebrew/gupnp/_metadata/description
new file mode 100644
index 000000000..37a1a2ed5
--- /dev/null
+++ b/homebrew/gupnp/_metadata/description
@@ -0,0 +1 @@
+Framework for creating UPnP devices and control points
diff --git a/homebrew/gupnp/_metadata/homepage b/homebrew/gupnp/_metadata/homepage
new file mode 100644
index 000000000..291d2e637
--- /dev/null
+++ b/homebrew/gupnp/_metadata/homepage
@@ -0,0 +1 @@
+https://wiki.gnome.org/Projects/GUPnP
diff --git a/homebrew/gupnp/_metadata/name b/homebrew/gupnp/_metadata/name
new file mode 100644
index 000000000..662fb616f
--- /dev/null
+++ b/homebrew/gupnp/_metadata/name
@@ -0,0 +1 @@
+Gupnp
diff --git a/homebrew/gupnp/_metadata/version b/homebrew/gupnp/_metadata/version
new file mode 100644
index 000000000..26aaba0e8
--- /dev/null
+++ b/homebrew/gupnp/_metadata/version
@@ -0,0 +1 @@
+1.2.0
diff --git a/homebrew/gupnp/download.sh b/homebrew/gupnp/download.sh
new file mode 100755
index 000000000..53cfd02ef
--- /dev/null
+++ b/homebrew/gupnp/download.sh
@@ -0,0 +1 @@
+wget https://download.gnome.org/sources/gupnp/1.2/gupnp-1.2.0.tar.xz \ No newline at end of file
diff --git a/homebrew/gupnp/patches.sh b/homebrew/gupnp/patches.sh
new file mode 100755
index 000000000..fbbbc2168
--- /dev/null
+++ b/homebrew/gupnp/patches.sh
@@ -0,0 +1,38 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/libgupnp/meson.build b/libgupnp/meson.build
+index b832acb..561b3cd 100644
+--- a/libgupnp/meson.build
++++ b/libgupnp/meson.build
+@@ -90,10 +90,20 @@ sources = files(
+ 'xml-util.c'
+ )
+
++version = '0.0.0'
++version_arr = version.split('.')
++major_version = version_arr[0].to_int()
++minor_version = version_arr[1].to_int()
++micro_version = version_arr[2].to_int()
++current = major_version + minor_version + 1
++interface_age = micro_version
++darwin_versions = [current, '@0@.@1@'.format(current, interface_age)]
++
+ libgupnp = library(
+ 'gupnp-1.2',
+ sources + context_manager_impl + enums,
+- version : '0.0.0',
++ version : version,
++ darwin_versions : darwin_versions,
+ dependencies : dependencies + system_deps,
+ c_args : context_manager_args,
+ include_directories: include_directories('..'),
+diff --git a/meson.build b/meson.build
+index 9cf4697..45fb0dc 100644
+--- a/meson.build
++++ b/meson.build
+@@ -1,4 +1,4 @@
+-project('gupnp', 'c', version : '1.2.0')
++project('gupnp', 'c', version : '1.2.0', meson_version : '>= 0.48.0')
+ gnome = import('gnome')
+ pkg = import('pkgconfig')
+EOF