Permalink
Browse files
gnome-themes-extra: new port
Provides theme assets for optional gtk2 themes Adwaita, Adwait-dark and gtk2 and gtk3 versions of deprecated theme HighContrast.
- Loading branch information
Showing
with
95 additions
and 0 deletions.
| @@ -0,0 +1,63 @@ | ||
| # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 | ||
|
|
||
| PortSystem 1.0 | ||
|
|
||
| name gnome-themes-extra | ||
| version 3.27.92 | ||
| set branch [join [lrange [split ${version} .] 0 1] .] | ||
| categories gnome | ||
| maintainers {devans @dbevans} openmaintainer | ||
| license LGPL-2.1+ GPL-2+ | ||
| platforms darwin | ||
| description Extra GTK+ 2 and 3 themes for GNOME | ||
|
|
||
| long_description gnome-themes-extra contains the optional GTK+ 2 themes \ | ||
| Adwaita and Adwaita-dark and both the GTK+ 2 and 3 \ | ||
| versions of deprecated theme HighContrast. | ||
|
|
||
| homepage https://www.gnome.org/ | ||
| master_sites gnome:sources/$name/$branch/ | ||
|
|
||
| use_xz yes | ||
|
|
||
| checksums rmd160 aa89e277aee62007090205839288946db99282f4 \ | ||
| sha256 95711f95da892a0d5531a4a233546e14b123721ecd90e02a837f27e1d2d35c12 \ | ||
| size 2957404 | ||
|
|
||
| depends_build port:intltool \ | ||
| port:pkgconfig \ | ||
| port:gnome-common \ | ||
| port:autoconf \ | ||
| port:automake \ | ||
| port:libtool | ||
|
|
||
| depends_lib port:gtk3 \ | ||
| port:gtk2 \ | ||
| port:librsvg | ||
|
|
||
| patchfiles patch-configure.ac.diff | ||
|
|
||
| # reconfigure using upstream autogen.sh for intltool 0.51 compatibility | ||
|
|
||
| post-patch { | ||
| xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} | ||
| } | ||
|
|
||
| configure.cmd ./autogen.sh | ||
|
|
||
| configure.args --disable-silent-rules | ||
|
|
||
| # | ||
| # the following dummy variants are used | ||
| # to identify this port's binary dependencies | ||
| # based on which variant of gtk2, gtk3 is used for the build | ||
| # | ||
|
|
||
| variant x11 conflicts quartz {} | ||
| variant quartz conflicts x11 {} | ||
|
|
||
| if {![variant_isset quartz]} { | ||
| default_variants +x11 | ||
| } | ||
|
|
||
| livecheck.type gnome |
| @@ -0,0 +1,21 @@ | ||
| #!/bin/sh | ||
| # Run this to generate all the initial makefiles, etc. | ||
|
|
||
| srcdir=`dirname $0` | ||
| test -z "$srcdir" && srcdir=. | ||
|
|
||
| PKG_NAME="gnome-themes-standard" | ||
| REQUIRED_AUTOMAKE_VERSION=1.9 | ||
|
|
||
| (test -f $srcdir/configure.ac \ | ||
| && test -d $srcdir/themes) || { | ||
| echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" | ||
| echo " top-level $PKG_NAME directory" | ||
| exit 1 | ||
| } | ||
|
|
||
| which gnome-autogen.sh || { | ||
| echo "You need to install gnome-common from the GNOME git" | ||
| exit 1 | ||
| } | ||
| USE_GNOME2_MACROS=1 . gnome-autogen.sh |
| @@ -0,0 +1,11 @@ | ||
| --- configure.ac.orig 2016-10-03 11:29:26.000000000 -0700 | ||
| +++ configure.ac 2016-10-03 11:39:20.000000000 -0700 | ||
| @@ -71,7 +71,7 @@ | ||
| GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable glib_compile_resources gio-2.0` | ||
| AC_SUBST(GLIB_COMPILE_RESOURCES) | ||
|
|
||
| -AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache) | ||
| +AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache-3.0) | ||
| if test -z "$GTK_UPDATE_ICON_CACHE"; then | ||
| AC_MSG_ERROR([Could not find gtk-update-icon-cache]) | ||
| fi |