aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-04-04 21:10:24 +0800
committerbapt <bapt@FreeBSD.org>2014-04-04 21:10:24 +0800
commit7e1b7b7633f11483f95c5ea277773d525ff1b07c (patch)
tree42609afdeaee078602ea5ab8889a4a0a33b37326 /deskutils
parente055f3bb9296145e5d99e4c5e551039f62ddeeb2 (diff)
downloadfreebsd-ports-gnome-7e1b7b7633f11483f95c5ea277773d525ff1b07c.tar.gz
freebsd-ports-gnome-7e1b7b7633f11483f95c5ea277773d525ff1b07c.tar.zst
freebsd-ports-gnome-7e1b7b7633f11483f95c5ea277773d525ff1b07c.zip
Support stage
clean up of the useless dirrmtry Use options helpers
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/clipit/Makefile25
-rw-r--r--deskutils/clipit/pkg-plist38
2 files changed, 10 insertions, 53 deletions
diff --git a/deskutils/clipit/Makefile b/deskutils/clipit/Makefile
index 78bc9da01e6f..9e36faf9c086 100644
--- a/deskutils/clipit/Makefile
+++ b/deskutils/clipit/Makefile
@@ -2,6 +2,7 @@
PORTNAME= clipit
PORTVERSION= 1.4.2
+PORTREVISION= 1
CATEGORIES= deskutils
MASTER_SITES= SF/gtkclipit/Version%201
@@ -15,26 +16,14 @@ USE_GNOME= gtk20
OPTIONS_DEFINE= NLS XDOTOOL
XDOTOOL_DESC= Automatic paste functionality
+OPTIONS_SUB= yes
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+NLS_USES= gettext
+NLS_CONFIGURE_ON= localedir=${LOCALBASE}/share/locale
+NLS_CONFIGURE_OFF= --disable-nls
+XDOTOOL_RUN_DEPENDS+= xdotool:${PORTSDIR}/x11/xdotool
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-CONFIGURE_ARGS+= --localedir=${LOCALBASE}/share/locale
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MXDOTOOL}
-RUN_DEPENDS+= xdotool:${PORTSDIR}/x11/xdotool
-.endif
-
-MAN1= clipit.1
-
-post-patch-script:
+post-patch:
@${REINPLACE_CMD} -e 's|^itlocaledir =.*|itlocaledir = $$(datarootdir)/locale|' \
${WRKSRC}/po/Makefile.in.in
diff --git a/deskutils/clipit/pkg-plist b/deskutils/clipit/pkg-plist
index 1714a2ba01c3..5e9583675add 100644
--- a/deskutils/clipit/pkg-plist
+++ b/deskutils/clipit/pkg-plist
@@ -1,5 +1,6 @@
bin/clipit
etc/xdg/autostart/clipit-startup.desktop
+man/man1/clipit.1.gz
share/applications/clipit.desktop
share/icons/hicolor/scalable/apps/clipit-trayicon.svg
%%NLS%%share/locale/cs/LC_MESSAGES/clipit.mo
@@ -24,38 +25,5 @@ share/icons/hicolor/scalable/apps/clipit-trayicon.svg
@dirrmtry share/icons/hicolor/scalable
@dirrmtry share/icons/hicolor
@dirrmtry share/icons
-%%NLS%%@dirrmtry share/locale/cs/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/cs
-%%NLS%%@dirrmtry share/locale/da/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/da
-%%NLS%%@dirrmtry share/locale/de/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/de
-%%NLS%%@dirrmtry share/locale/es/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/es
-%%NLS%%@dirrmtry share/locale/et/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/et
-%%NLS%%@dirrmtry share/locale/fr/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/fr
-%%NLS%%@dirrmtry share/locale/hu/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/hu
-%%NLS%%@dirrmtry share/locale/it/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/it
-%%NLS%%@dirrmtry share/locale/ja/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/ja
-%%NLS%%@dirrmtry share/locale/nb/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/nb
-%%NLS%%@dirrmtry share/locale/pl/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/pl
-%%NLS%%@dirrmtry share/locale/pt/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/pt
-%%NLS%%@dirrmtry share/locale/ro/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/ro
-%%NLS%%@dirrmtry share/locale/ru/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/ru
-%%NLS%%@dirrmtry share/locale/sv/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/sv
-%%NLS%%@dirrmtry share/locale/tr/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/tr
-%%NLS%%@dirrmtry share/locale/zh_CN/LC_MESSAGES
-%%NLS%%@dirrmtry share/locale/zh_CN
-%%NLS%%@dirrmtry share/locale
+@dirrmtry etc/xdg/autostart
+@dirrmtry etc/xdg