Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 13:10:25 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350109 - head/deskutils/clipit
Message-ID:  <201404041310.s34DAP1f092504@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Apr  4 13:10:24 2014
New Revision: 350109
URL: http://svnweb.freebsd.org/changeset/ports/350109
QAT: https://qat.redports.org/buildarchive/r350109/

Log:
  Support stage
  clean up of the useless dirrmtry
  Use options helpers

Modified:
  head/deskutils/clipit/Makefile
  head/deskutils/clipit/pkg-plist

Modified: head/deskutils/clipit/Makefile
==============================================================================
--- head/deskutils/clipit/Makefile	Fri Apr  4 13:03:39 2014	(r350108)
+++ head/deskutils/clipit/Makefile	Fri Apr  4 13:10:24 2014	(r350109)
@@ -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
 

Modified: head/deskutils/clipit/pkg-plist
==============================================================================
--- head/deskutils/clipit/pkg-plist	Fri Apr  4 13:03:39 2014	(r350108)
+++ head/deskutils/clipit/pkg-plist	Fri Apr  4 13:10:24 2014	(r350109)
@@ -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
 @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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404041310.s34DAP1f092504>