aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2009-04-23 21:38:45 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2009-04-23 21:38:45 +0800
commit7450a2059f4903326ae38095419ef506f3d85948 (patch)
tree43c73397f10fa66cea217a186531a2e54f23be61
parentc7a7e212bda38a6f757f23bb23d16c3c9c0911b5 (diff)
downloadfreebsd-ports-gnome-7450a2059f4903326ae38095419ef506f3d85948.tar.gz
freebsd-ports-gnome-7450a2059f4903326ae38095419ef506f3d85948.tar.zst
freebsd-ports-gnome-7450a2059f4903326ae38095419ef506f3d85948.zip
- Update to 0.13.1, support translations
PR: 133900 Submitted by: Slaven Rezic <slaven at rezic dot de> (maintainer
-rw-r--r--astro/merkaartor/Makefile16
-rw-r--r--astro/merkaartor/distinfo6
-rw-r--r--astro/merkaartor/files/patch-Merkaartor.pro11
-rw-r--r--astro/merkaartor/pkg-plist11
4 files changed, 37 insertions, 7 deletions
diff --git a/astro/merkaartor/Makefile b/astro/merkaartor/Makefile
index c642eaafc2c1..628349f0d5b4 100644
--- a/astro/merkaartor/Makefile
+++ b/astro/merkaartor/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= merkaartor
-PORTVERSION= 0.12
-PORTREVISION= 2
+PORTVERSION= 0.13.1
CATEGORIES= astro
MASTER_SITES= http://www.merkaartor.org/downloads/source/
@@ -19,17 +18,26 @@ LIB_DEPENDS= exiv2:${PORTSDIR}/graphics/exiv2
USE_BZIP2= yes
USE_QT_VER= 4
-QT_COMPONENTS= qmake_build uic_build moc_build rcc_build gui network svg webkit xml imageformats
+QT_COMPONENTS= qmake_build uic_build moc_build rcc_build linguist_build \
+ gui network svg webkit xml imageformats
MAN1= merkaartor.1
HAS_CONFIGURE= yes
-PLIST_FILES= bin/merkaartor
+post-patch:
+ @${REINPLACE_CMD} -e 's|/lrelease|&-qt4|' \
+ ${WRKSRC}/Merkaartor.pro
+# Don't ask. If the compiler_TSQM_make_all target is not called before
+# calling qmake-qt4, then the install_translations target won't show
+# up in the Makefile.
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${QMAKE} PREFIX=${PREFIX}
+ cd ${WRKSRC} && ${MAKE} compiler_TSQM_make_all
+ @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
+ ${QMAKE} PREFIX=${PREFIX}
post-install:
${INSTALL_MAN} ${WRKSRC}/debian/merkaartor.1 ${PREFIX}/man/man1
diff --git a/astro/merkaartor/distinfo b/astro/merkaartor/distinfo
index 2497fac7e992..0e3250c51102 100644
--- a/astro/merkaartor/distinfo
+++ b/astro/merkaartor/distinfo
@@ -1,3 +1,3 @@
-MD5 (merkaartor-0.12.tar.bz2) = 662320392a7efe427ac1de1a891bdc05
-SHA256 (merkaartor-0.12.tar.bz2) = 56de6a19ab7ad703b50f18ea8935e042a1728449040ba62b1efcd57fbffafb58
-SIZE (merkaartor-0.12.tar.bz2) = 1266076
+MD5 (merkaartor-0.13.1.tar.bz2) = b3eccc1ccf1534a80258f5a24b13e661
+SHA256 (merkaartor-0.13.1.tar.bz2) = 1577d63cc6fd37ff548ea3836f1242755fbbdf8c2b5b1034b7d3b440b0532ef7
+SIZE (merkaartor-0.13.1.tar.bz2) = 3011810
diff --git a/astro/merkaartor/files/patch-Merkaartor.pro b/astro/merkaartor/files/patch-Merkaartor.pro
new file mode 100644
index 000000000000..ac00341bccb6
--- /dev/null
+++ b/astro/merkaartor/files/patch-Merkaartor.pro
@@ -0,0 +1,11 @@
+--- Merkaartor.pro.orig 2009-03-27 16:41:05.000000000 +0100
++++ Merkaartor.pro 2009-04-21 23:41:43.231724554 +0200
+@@ -85,7 +85,7 @@
+ translations/merkaartor_ar.qm \
+ translations/merkaartor_cs.qm \
+ translations/merkaartor_de.qm \
+- translations/merkaartor_es.ts \
++ translations/merkaartor_es.qm \
+ translations/merkaartor_fr.qm \
+ translations/merkaartor_it.qm \
+ translations/merkaartor_pl.qm \
diff --git a/astro/merkaartor/pkg-plist b/astro/merkaartor/pkg-plist
new file mode 100644
index 000000000000..b31d74071289
--- /dev/null
+++ b/astro/merkaartor/pkg-plist
@@ -0,0 +1,11 @@
+bin/merkaartor
+%%DATADIR%%/translations/merkaartor_ar.qm
+%%DATADIR%%/translations/merkaartor_cs.qm
+%%DATADIR%%/translations/merkaartor_de.qm
+%%DATADIR%%/translations/merkaartor_es.qm
+%%DATADIR%%/translations/merkaartor_fr.qm
+%%DATADIR%%/translations/merkaartor_it.qm
+%%DATADIR%%/translations/merkaartor_pl.qm
+%%DATADIR%%/translations/merkaartor_ru.qm
+@dirrm %%DATADIR%%/translations
+@dirrm %%DATADIR%%