aboutsummaryrefslogtreecommitdiff
path: root/graphics/gscan2pdf
diff options
context:
space:
mode:
authorChin-San Huang <chinsan@FreeBSD.org>2008-09-07 07:07:28 +0000
committerChin-San Huang <chinsan@FreeBSD.org>2008-09-07 07:07:28 +0000
commite3eda751695ecb40bb81d3f15562a2b68a5c908a (patch)
tree3dade8544ea5e90b6b82d66c34d536154688e969 /graphics/gscan2pdf
parent2ad3bf9db383d51b4205cb3e76d87e3037fd1c59 (diff)
downloadports-e3eda751695ecb40bb81d3f15562a2b68a5c908a.tar.gz
ports-e3eda751695ecb40bb81d3f15562a2b68a5c908a.zip
Notes
Diffstat (limited to 'graphics/gscan2pdf')
-rw-r--r--graphics/gscan2pdf/Makefile17
-rw-r--r--graphics/gscan2pdf/distinfo6
-rw-r--r--graphics/gscan2pdf/pkg-plist41
3 files changed, 39 insertions, 25 deletions
diff --git a/graphics/gscan2pdf/Makefile b/graphics/gscan2pdf/Makefile
index 2ae11d743e28..1e21c72af58c 100644
--- a/graphics/gscan2pdf/Makefile
+++ b/graphics/gscan2pdf/Makefile
@@ -6,12 +6,11 @@
#
PORTNAME= gscan2pdf
-PORTVERSION= 0.9.23
-PORTREVISION= 2
+PORTVERSION= 0.9.24
CATEGORIES= graphics
MASTER_SITES= SFE
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= chinsan@FreeBSD.org
COMMENT= Produce PDF from scanned documents
RUN_DEPENDS= p5-PDF-API2>=0.57:${PORTSDIR}/textproc/p5-PDF-API2 \
@@ -29,13 +28,23 @@ RUN_DEPENDS= p5-PDF-API2>=0.57:${PORTSDIR}/textproc/p5-PDF-API2 \
p5-gettext>=1.05:${PORTSDIR}/devel/p5-Locale-gettext
# xdg-email:${PORTSDIR}/devel/xdg-utils
-USE_GETTEXT= yes
USE_GMAKE= yes
USE_GNOME= librsvg2
PERL_CONFIGURE= yes
MAN1= ${PORTNAME}.1
PORT_VERBS= ${PORTNAME} Gscan2pdf
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's/--parents/-p/g;s|$$sharedir/man|${MANPREFIX}/man|g;s|1p|1|g'\
-e '/SITEPREFIX/s|/usr|${PREFIX}|' ${WRKSRC}/Makefile.PL
diff --git a/graphics/gscan2pdf/distinfo b/graphics/gscan2pdf/distinfo
index 261ca1a9814f..243470abbd04 100644
--- a/graphics/gscan2pdf/distinfo
+++ b/graphics/gscan2pdf/distinfo
@@ -1,3 +1,3 @@
-MD5 (gscan2pdf-0.9.23.tar.gz) = d0b3da5ce50eba55bd7628b73973e110
-SHA256 (gscan2pdf-0.9.23.tar.gz) = cdbfb0960d1057ddfa1881611fe97fd4df70ef85fbe3e55965c9c0ed35ed68ca
-SIZE (gscan2pdf-0.9.23.tar.gz) = 240077
+MD5 (gscan2pdf-0.9.24.tar.gz) = 6db807625d3e3081e7970f0b41df3508
+SHA256 (gscan2pdf-0.9.24.tar.gz) = ec9780429654610972663e8f3b4920d1199b80c1522e097d08cff84a1cec081e
+SIZE (gscan2pdf-0.9.24.tar.gz) = 291569
diff --git a/graphics/gscan2pdf/pkg-plist b/graphics/gscan2pdf/pkg-plist
index 40b8014ecd4c..dea5190d475a 100644
--- a/graphics/gscan2pdf/pkg-plist
+++ b/graphics/gscan2pdf/pkg-plist
@@ -5,27 +5,32 @@ share/applications/gscan2pdf.desktop
%%DATADIR%%/gscan2pdf.svg
%%DATADIR%%/pdf.svg
%%DATADIR%%/scanner.svg
+%%DATADIR%%/stock-selection-all-16.png
%%DATADIR%%/stock-rotate-180.svg
%%DATADIR%%/stock-rotate-270.svg
%%DATADIR%%/stock-rotate-90.svg
-share/locale/be/LC_MESSAGES/gscan2pdf.mo
-share/locale/cs/LC_MESSAGES/gscan2pdf.mo
-share/locale/da/LC_MESSAGES/gscan2pdf.mo
-share/locale/de/LC_MESSAGES/gscan2pdf.mo
-share/locale/el/LC_MESSAGES/gscan2pdf.mo
-share/locale/en_GB/LC_MESSAGES/gscan2pdf.mo
-share/locale/es/LC_MESSAGES/gscan2pdf.mo
-share/locale/fr/LC_MESSAGES/gscan2pdf.mo
-share/locale/it/LC_MESSAGES/gscan2pdf.mo
-share/locale/nl/LC_MESSAGES/gscan2pdf.mo
-share/locale/pl/LC_MESSAGES/gscan2pdf.mo
-share/locale/pt/LC_MESSAGES/gscan2pdf.mo
-share/locale/pt_BR/LC_MESSAGES/gscan2pdf.mo
-share/locale/ru/LC_MESSAGES/gscan2pdf.mo
-share/locale/sl/LC_MESSAGES/gscan2pdf.mo
-share/locale/sv/LC_MESSAGES/gscan2pdf.mo
-share/locale/tr/LC_MESSAGES/gscan2pdf.mo
-share/locale/zh_TW/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/be/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/da/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/el/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/fa/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/gscan2pdf.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/gscan2pdf.mo
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/gscan2pdf
@dirrmtry share/applications
@dirrmtry %%DATADIR%%