From 49153201c44ef05b83b6dafe1539c7637c8161d4 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Thu, 6 Mar 2008 23:42:57 +0000 Subject: [PATCH] - Unbreak (make fetchable again) - Respect NLS - Adopt maintainship Approved by: miwi (mentor) --- cad/oregano/Makefile | 12 ++++++++++-- cad/oregano/pkg-plist | 22 +++++++++++----------- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/cad/oregano/Makefile b/cad/oregano/Makefile index cc04b6108eb4..4c4b58106c63 100644 --- a/cad/oregano/Makefile +++ b/cad/oregano/Makefile @@ -11,7 +11,7 @@ PORTVERSION= 0.69.0 CATEGORIES= cad gnome MASTER_SITES= http://gforge.lug.fi.uba.ar/frs/download.php/86/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= gahr@FreeBSD.org COMMENT= Schematic capture and simulation of electrical circuits USE_GNOME= gnomehack gnomeprefix gtksourceview intlhack libglade2 \ @@ -22,10 +22,18 @@ INSTALLS_OMF= yes .include -BROKEN= does not fetch +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " +.endif post-patch: @${REINPLACE_CMD} -e "s|-Wall|${CFLAGS}|g" ${WRKSRC}/SConstruct +.if defined(WITHOUT_NLS) + @${REINPLACE_CMD} -e "/^SConscript ('po\/SConscript')/d" ${WRKSRC}/SConstruct +.endif post-install: @${STRIP_CMD} ${PREFIX}/bin/oregano diff --git a/cad/oregano/pkg-plist b/cad/oregano/pkg-plist index be3a4e741bfa..d8180a286cbf 100644 --- a/cad/oregano/pkg-plist +++ b/cad/oregano/pkg-plist @@ -53,17 +53,17 @@ share/omf/oregano/oregano-fr.omf %%DATADIR%%/models/PNP.model %%DATADIR%%/models/TLC555.model %%DATADIR%%/models/UA741.model -share/locale/ca/LC_MESSAGES/oregano.mo -share/locale/de/LC_MESSAGES/oregano.mo -share/locale/es/LC_MESSAGES/oregano.mo -share/locale/fr/LC_MESSAGES/oregano.mo -share/locale/it/LC_MESSAGES/oregano.mo -share/locale/ja/LC_MESSAGES/oregano.mo -share/locale/pl/LC_MESSAGES/oregano.mo -share/locale/pt_BR/LC_MESSAGES/oregano.mo -share/locale/ro/LC_MESSAGES/oregano.mo -share/locale/ru/LC_MESSAGES/oregano.mo -share/locale/sv/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/ca/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/de/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/es/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/fr/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/it/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/ja/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/pl/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/pt_BR/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/ro/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/ru/LC_MESSAGES/oregano.mo +%%NLS%%share/locale/sv/LC_MESSAGES/oregano.mo share/mime/packages/oregano.xml share/pixmaps/gnome-oregano.svg @dirrm %%DATADIR%%/models