diff options
author | dwcjr <dwcjr@FreeBSD.org> | 2001-07-08 04:34:18 +0000 |
---|---|---|
committer | dwcjr <dwcjr@FreeBSD.org> | 2001-07-08 04:34:18 +0000 |
commit | 5a5aa75de05e3d46e95dd8605bd44ff6a63630a3 (patch) | |
tree | e67cf5b81e43caea3b9c5444ad716eaa5db0f764 /www | |
parent | 7fa97c8d0b4e0591726eebf91aa34a718c2405d1 (diff) | |
download | FreeBSD-ports-5a5aa75de05e3d46e95dd8605bd44ff6a63630a3.zip FreeBSD-ports-5a5aa75de05e3d46e95dd8605bd44ff6a63630a3.tar.gz |
Fix locale
Fix pkg-plist and installation of binary that depends on GTK if installed
PR: 28804
Submitted by: maintainer
Diffstat (limited to 'www')
-rw-r--r-- | www/amyc/Makefile | 6 | ||||
-rw-r--r-- | www/amyc/pkg-plist | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/www/amyc/Makefile b/www/amyc/Makefile index c334105..d5c0841 100644 --- a/www/amyc/Makefile +++ b/www/amyc/Makefile @@ -7,6 +7,7 @@ PORTNAME= amyc PORTVERSION= 0.9.159 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.crevola.com/about/current/ @@ -26,8 +27,13 @@ WANT_GTK= yes .if defined(HAVE_GTK) PLIST_SUB= WITH_GTK="" +USE_GTK= yes .else PLIST_SUB= WITH_GTK="@comment " .endif +post-patch: + @${PERL} -pi -e 's!\(datadir\)/locale!(prefix)/share/locale!' \ + ${WRKSRC}/po/Makefile.in.in + .include <bsd.port.post.mk> diff --git a/www/amyc/pkg-plist b/www/amyc/pkg-plist index ac5fe75..115e943 100644 --- a/www/amyc/pkg-plist +++ b/www/amyc/pkg-plist @@ -1,5 +1,6 @@ bin/amyc %%WITH_GTK%%bin/amycg share/locale/fr/LC_MESSAGES/amyc.mo -@unexec rmdir share/locale/fr/LC_MESSAGES 2>/dev/null || true -@unexec rmdir share/locale/fr 2>/dev/null || true +@unexec rmdir %D/share/locale/fr/LC_MESSAGES 2>/dev/null || true +@unexec rmdir %D/share/locale/fr 2>/dev/null || true +@unexec rmdir %D/share/locale 2>/dev/null || true |