aboutsummaryrefslogtreecommitdiffstats
path: root/cad/oregano
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2008-03-07 07:42:57 +0800
committergahr <gahr@FreeBSD.org>2008-03-07 07:42:57 +0800
commit9d47663d3401cb0d16196eb4d1766942d79b9e6c (patch)
tree9bcd5c75f2f8ef1573b7b875de81e7c18f5c98d3 /cad/oregano
parentac493e96fcad2b528831202f32abec55dfb1136f (diff)
downloadfreebsd-ports-gnome-9d47663d3401cb0d16196eb4d1766942d79b9e6c.tar.gz
freebsd-ports-gnome-9d47663d3401cb0d16196eb4d1766942d79b9e6c.tar.zst
freebsd-ports-gnome-9d47663d3401cb0d16196eb4d1766942d79b9e6c.zip
- Unbreak (make fetchable again)
- Respect NLS - Adopt maintainship Approved by: miwi (mentor)
Diffstat (limited to 'cad/oregano')
-rw-r--r--cad/oregano/Makefile12
-rw-r--r--cad/oregano/pkg-plist22
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 <bsd.port.pre.mk>
-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