mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Support stage
clean up of the useless dirrmtry Use options helpers
This commit is contained in:
parent
b863439006
commit
f455efcb9e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350109
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user