aboutsummaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2015-05-05 19:00:05 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2015-05-05 19:00:05 +0000
commitc6dc3377fee587583e8f2c94e31c374774a17814 (patch)
tree9d658fbf285b87bb5843848dd73e8bcd795e8a30 /x11-wm
parentfa04897dacb38572af069e91d6b42de52a13dc4d (diff)
downloadports-c6dc3377fee587583e8f2c94e31c374774a17814.tar.gz
ports-c6dc3377fee587583e8f2c94e31c374774a17814.zip
Notes
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/plank/Makefile9
-rw-r--r--x11-wm/plank/distinfo4
-rw-r--r--x11-wm/plank/files/patch-config.h.in10
-rw-r--r--x11-wm/plank/files/patch-configure20
-rw-r--r--x11-wm/plank/files/patch-data__Makefile.in98
-rw-r--r--x11-wm/plank/files/patch-lib_Widgets_PreferencesWindow.vala8
-rw-r--r--x11-wm/plank/files/patch-vapi_config.vapi11
-rw-r--r--x11-wm/plank/pkg-plist1
8 files changed, 51 insertions, 110 deletions
diff --git a/x11-wm/plank/Makefile b/x11-wm/plank/Makefile
index af6089afc039..d51d7c7024af 100644
--- a/x11-wm/plank/Makefile
+++ b/x11-wm/plank/Makefile
@@ -2,9 +2,9 @@
# $FreeBSD$
PORTNAME= plank
-PORTVERSION= 0.9.0
+PORTVERSION= 0.9.1
CATEGORIES= x11-wm
-MASTER_SITES= https://launchpadlibrarian.net/202964163/ \
+MASTER_SITES= https://launchpadlibrarian.net/205431962/ \
https://launchpad.net/${PORTNAME}/1.0/${PORTVERSION}/+download/
MAINTAINER= olivierd@FreeBSD.org
@@ -25,6 +25,7 @@ CFLAGS+= -Wno-return-type
USE_GNOME= glib20 gtk30 gdkpixbuf2 intlhack libxml2 libwnck3
USE_XORG= x11 xfixes xi
INSTALLS_ICONS= yes
+INSTALL_TARGET= install-strip
OPTIONS_SUB= yes
OPTIONS_DEFINE= NLS DBUSMENU
@@ -42,8 +43,4 @@ NLS_CONFIGURE_ENABLE= nls
DBUSMENU_LIB_DEPENDS= libdbusmenu-gtk3.so:${PORTSDIR}/devel/libdbusmenu
DBUSMENU_CONFIGURE_ENABLE= dbusmenu
-post-patch:
- ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
- ${WRKSRC}/lib/Widgets/PreferencesWindow.vala
-
.include <bsd.port.mk>
diff --git a/x11-wm/plank/distinfo b/x11-wm/plank/distinfo
index b577b3006185..5a36a101be7d 100644
--- a/x11-wm/plank/distinfo
+++ b/x11-wm/plank/distinfo
@@ -1,2 +1,2 @@
-SHA256 (plank-0.9.0.tar.xz) = 3a878a393a1e274d44ee88e80e879d30132af1cb1e76c4274dde16666a01a0d4
-SIZE (plank-0.9.0.tar.xz) = 898700
+SHA256 (plank-0.9.1.tar.xz) = 884cd57a0fcc78cf82cf01072dedc46c34b6f766871d5f773b68ee498fded9a2
+SIZE (plank-0.9.1.tar.xz) = 904056
diff --git a/x11-wm/plank/files/patch-config.h.in b/x11-wm/plank/files/patch-config.h.in
new file mode 100644
index 000000000000..945dfb6e40d0
--- /dev/null
+++ b/x11-wm/plank/files/patch-config.h.in
@@ -0,0 +1,10 @@
+--- config.h.in.orig 2015-05-02 15:04:04 UTC
++++ config.h.in
+@@ -1,5 +1,7 @@
+ /* config.h.in. Generated from configure.ac by autoheader. */
+
++#undef INSTALL_PREFIX
++
+ /* Define the gettext package to be used */
+ #undef GETTEXT_PACKAGE
+
diff --git a/x11-wm/plank/files/patch-configure b/x11-wm/plank/files/patch-configure
new file mode 100644
index 000000000000..afe868d753b8
--- /dev/null
+++ b/x11-wm/plank/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig 2015-05-02 15:04:03 UTC
++++ configure
+@@ -797,6 +797,7 @@ PLANK_MICRO_VERSION
+ PLANK_MINOR_VERSION
+ PLANK_MAJOR_VERSION
+ PLANK_MAJOR_MINOR_VERSION
++INSTALL_PREFIX
+ LT_AGE
+ LT_REVISION
+ LT_CURRENT
+@@ -2330,6 +2331,9 @@ cat >>confdefs.h <<_ACEOF
+ #define PACKAGE_URL "$PACKAGE_URL"
+ _ACEOF
+
++cat >>confdefs.h <<_ACEOF
++#define INSTALL_PREFIX "${prefix}"
++_ACEOF
+
+ # Let the site file select an alternate cache file if it wants to.
+ # Prefer an explicitly selected file to automatically selected ones.
diff --git a/x11-wm/plank/files/patch-data__Makefile.in b/x11-wm/plank/files/patch-data__Makefile.in
deleted file mode 100644
index 128b1f215422..000000000000
--- a/x11-wm/plank/files/patch-data__Makefile.in
+++ /dev/null
@@ -1,98 +0,0 @@
---- ./data/Makefile.in.orig 2014-05-20 11:21:55.000000000 +0000
-+++ ./data/Makefile.in 2014-08-02 16:44:50.000000000 +0000
-@@ -148,11 +148,11 @@
- $(am__cd) "$$dir" && rm -f $$files; }; \
- }
- man1dir = $(mandir)/man1
--am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(appdatadir)" \
-+am__installdirs = "$(DESTDIR)$(man1dir)" \
- "$(DESTDIR)$(applicationsdir)"
- NROFF = nroff
- MANS = $(dist_man_MANS)
--DATA = $(appdata_DATA) $(applications_DATA)
-+DATA = $(applications_DATA)
- RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
- distclean-recursive maintainer-clean-recursive
- am__recursive_targets = \
-@@ -391,8 +391,6 @@
-
- applicationsdir = $(datadir)/applications
- applications_DATA = plank.desktop
--appdatadir = $(datadir)/appdata
--appdata_DATA = plank.appdata.xml
- all: all-recursive
-
- .SUFFIXES:
-@@ -475,27 +473,6 @@
- } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
- -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
- dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
--install-appdataDATA: $(appdata_DATA)
-- @$(NORMAL_INSTALL)
-- @list='$(appdata_DATA)'; test -n "$(appdatadir)" || list=; \
-- if test -n "$$list"; then \
-- echo " $(MKDIR_P) '$(DESTDIR)$(appdatadir)'"; \
-- $(MKDIR_P) "$(DESTDIR)$(appdatadir)" || exit 1; \
-- fi; \
-- for p in $$list; do \
-- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-- echo "$$d$$p"; \
-- done | $(am__base_list) | \
-- while read files; do \
-- echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appdatadir)'"; \
-- $(INSTALL_DATA) $$files "$(DESTDIR)$(appdatadir)" || exit $$?; \
-- done
--
--uninstall-appdataDATA:
-- @$(NORMAL_UNINSTALL)
-- @list='$(appdata_DATA)'; test -n "$(appdatadir)" || list=; \
-- files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
-- dir='$(DESTDIR)$(appdatadir)'; $(am__uninstall_files_from_dir)
- install-applicationsDATA: $(applications_DATA)
- @$(NORMAL_INSTALL)
- @list='$(applications_DATA)'; test -n "$(applicationsdir)" || list=; \
-@@ -677,7 +654,7 @@
- all-am: Makefile $(MANS) $(DATA)
- installdirs: installdirs-recursive
- installdirs-am:
-- for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(appdatadir)" "$(DESTDIR)$(applicationsdir)"; do \
-+ for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(applicationsdir)"; do \
- test -z "$$dir" || $(MKDIR_P) "$$dir"; \
- done
- install: install-recursive
-@@ -731,7 +708,7 @@
-
- info-am:
-
--install-data-am: install-appdataDATA install-applicationsDATA \
-+install-data-am: install-applicationsDATA \
- install-man
-
- install-dvi: install-dvi-recursive
-@@ -776,7 +753,7 @@
-
- ps-am:
-
--uninstall-am: uninstall-appdataDATA uninstall-applicationsDATA \
-+uninstall-am: uninstall-applicationsDATA \
- uninstall-man
-
- uninstall-man: uninstall-man1
-@@ -787,7 +764,7 @@
- check-am clean clean-generic clean-libtool cscopelist-am ctags \
- ctags-am distclean distclean-generic distclean-libtool \
- distclean-tags distdir dvi dvi-am html html-am info info-am \
-- install install-am install-appdataDATA \
-+ install install-am \
- install-applicationsDATA install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
-@@ -796,7 +773,7 @@
- installdirs installdirs-am maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic \
- mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
-- uninstall-am uninstall-appdataDATA uninstall-applicationsDATA \
-+ uninstall-am uninstall-applicationsDATA \
- uninstall-man uninstall-man1
-
-
diff --git a/x11-wm/plank/files/patch-lib_Widgets_PreferencesWindow.vala b/x11-wm/plank/files/patch-lib_Widgets_PreferencesWindow.vala
index 33c75b2ac884..468f3832831f 100644
--- a/x11-wm/plank/files/patch-lib_Widgets_PreferencesWindow.vala
+++ b/x11-wm/plank/files/patch-lib_Widgets_PreferencesWindow.vala
@@ -5,10 +5,10 @@
construct
{
+ GLib.Intl.setlocale (LocaleCategory.ALL, "");
-+ string langpack_dir = GLib.Path.build_filename ("%%PREFIX%%", "share", "locale");
-+ GLib.Intl.bindtextdomain ("plank", langpack_dir);
-+ GLib.Intl.bind_textdomain_codeset ("plank", "UTF-8");
-+ GLib.Intl.textdomain ("plank");
++ string langpack_dir = GLib.Path.build_filename (Build.INSTALL_PREFIX, "share", "locale");
++ GLib.Intl.bindtextdomain (Build.GETTEXT_PACKAGE, langpack_dir);
++ GLib.Intl.bind_textdomain_codeset (Build.GETTEXT_PACKAGE, "UTF-8");
++ GLib.Intl.textdomain (Build.GETTEXT_PACKAGE);
+
skip_pager_hint = true;
skip_taskbar_hint = true;
diff --git a/x11-wm/plank/files/patch-vapi_config.vapi b/x11-wm/plank/files/patch-vapi_config.vapi
new file mode 100644
index 000000000000..97b30329e157
--- /dev/null
+++ b/x11-wm/plank/files/patch-vapi_config.vapi
@@ -0,0 +1,11 @@
+--- vapi/config.vapi.orig 2015-04-27 13:44:43 UTC
++++ vapi/config.vapi
+@@ -32,6 +32,8 @@ namespace Build
+ public const string VERSION;
+ public const string VERSION_INFO;
+
++ public const string INSTALL_PREFIX;
++
+ public const uint VERSION_MAJOR;
+ public const uint VERSION_MINOR;
+ public const uint VERSION_MICRO;
diff --git a/x11-wm/plank/pkg-plist b/x11-wm/plank/pkg-plist
index f977e3db60c2..91ccd037fe20 100644
--- a/x11-wm/plank/pkg-plist
+++ b/x11-wm/plank/pkg-plist
@@ -5,6 +5,7 @@ lib/libplank.so.0
lib/libplank.so.0.0.0
libdata/pkgconfig/plank.pc
man/man1/plank.1.gz
+share/appdata/plank.appdata.xml
share/applications/plank.desktop
share/icons/hicolor/128x128/apps/plank.svg
share/icons/hicolor/16x16/apps/plank.svg