summaryrefslogtreecommitdiff
path: root/homebrew/gupnp/.beer
blob: 710a6f30a2a9eac36638e32008a4736f32fa4a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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"
}