1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- relocate all REINPLACE stuff to post-patch target

- respect WITHOUT_NLS

PR:		79906
Submitted by:	leeym
Approved by:	maintainer-timeout
This commit is contained in:
Yen-Ming Lee 2005-05-27 02:25:18 +00:00
parent aea7d777a1
commit 0f85940147
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136230
2 changed files with 22 additions and 16 deletions

View File

@ -16,7 +16,6 @@ MAINTAINER= clsung@FreeBSD.org
COMMENT= A text mode RSS newsreader
USE_PERL5_BUILD=yes
USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= libxml2
USE_REINPLACE= yes
@ -30,6 +29,13 @@ post-configure:
.endif
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
MAN1= snownews.1
MANLANG= "" de nl fr it ru_RU.KOI8-R
@ -40,14 +46,14 @@ pre-everything::
@${ECHO_MSG} " Default is ISO-8859-1."
@${ECHO_MSG} " "
pre-configure:
@${REINPLACE_CMD} -e 's|#!/usr/bin/perl|#!/usr/bin/env perl|g' ${WRKSRC}/configure
post-patch:
@${REINPLACE_CMD} -e 's|#!/usr/bin/perl|#!${PERL}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS+=|g' ${WRKSRC}/platform_settings
@${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile
pre-build:
@${REINPLACE_CMD} -e 's|^PREFIX|#PREFIX|' ${WRKSRC}/platform_settings
@${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/Makefile
.if defined(WITHOUT_NLS)
${REINPLACE_CMD} -e 's/ install-locales / /g' ${WRKSRC}/Makefile
${REINPLACE_CMD} -e 's/ locales$$//g' ${WRKSRC}/Makefile
.endif
.include <bsd.port.mk>

View File

@ -1,15 +1,15 @@
bin/opml2snow
bin/snownews
bin/snowsync
share/locale/de/LC_MESSAGES/snownews.mo
share/locale/fr/LC_MESSAGES/snownews.mo
share/locale/nl/LC_MESSAGES/snownews.mo
share/locale/sl/LC_MESSAGES/snownews.mo
share/locale/es/LC_MESSAGES/snownews.mo
share/locale/it/LC_MESSAGES/snownews.mo
share/locale/ru/LC_MESSAGES/snownews.mo
share/locale/pt_BR/LC_MESSAGES/snownews.mo
share/locale/zh_TW/LC_MESSAGES/snownews.mo
%%NLS%%share/locale/de/LC_MESSAGES/snownews.mo
%%NLS%%share/locale/fr/LC_MESSAGES/snownews.mo
%%NLS%%share/locale/nl/LC_MESSAGES/snownews.mo
%%NLS%%share/locale/sl/LC_MESSAGES/snownews.mo
%%NLS%%share/locale/es/LC_MESSAGES/snownews.mo
%%NLS%%share/locale/it/LC_MESSAGES/snownews.mo
%%NLS%%share/locale/ru/LC_MESSAGES/snownews.mo
%%NLS%%share/locale/pt_BR/LC_MESSAGES/snownews.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/snownews.mo
@unexec rmdir %D/man/fr/man1 2>/dev/null || true
@unexec rmdir %D/man/fr 2>/dev/null || true
@unexec rmdir %D/man/de/man1 2>/dev/null || true