pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/nicotine support PKGLOCALEDIR



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18f11101714a
branches:  trunk
changeset: 364651:18f11101714a
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Mon Jul 03 11:54:52 2017 +0000

description:
support PKGLOCALEDIR

diffstat:

 net/nicotine/Makefile               |   4 +++-
 net/nicotine/distinfo               |   3 ++-
 net/nicotine/patches/patch-setup.py |  14 ++++++++++++++
 3 files changed, 19 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r ba8a2bc54bda -r 18f11101714a net/nicotine/Makefile
--- a/net/nicotine/Makefile     Mon Jul 03 11:53:57 2017 +0000
+++ b/net/nicotine/Makefile     Mon Jul 03 11:54:52 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.46 2017/01/01 14:43:50 wiz Exp $
+# $NetBSD: Makefile,v 1.47 2017/07/03 11:54:52 wiedi Exp $
 
 DISTNAME=      nicotine-1.0.8
 PKGREVISION=   16
@@ -17,5 +17,7 @@
 USE_LANGUAGES=         # empty
 PYTHON_VERSIONS_INCOMPATIBLE=  34 35 36 # py-gtk2
 
+MAKE_ENV+=     PKGLOCALEDIR=$(PKGLOCALEDIR:Q)
+
 .include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r ba8a2bc54bda -r 18f11101714a net/nicotine/distinfo
--- a/net/nicotine/distinfo     Mon Jul 03 11:53:57 2017 +0000
+++ b/net/nicotine/distinfo     Mon Jul 03 11:54:52 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2015/11/04 00:35:16 agc Exp $
+$NetBSD: distinfo,v 1.7 2017/07/03 11:54:52 wiedi Exp $
 
 SHA1 (nicotine-1.0.8.tar.bz2) = 8549172106c8f59da5a244382cbc5951dfbbc3fa
 RMD160 (nicotine-1.0.8.tar.bz2) = eaf4b0496f563ebf4521954b8d309ad3fcf5376d
 SHA512 (nicotine-1.0.8.tar.bz2) = fe623ec3602ca1f0c581f8857c0356c6692cd0386e9cded446438704a0a22307676e47dbbc1902c7c15e967ae0247f33db2cd8743d8a791cce6879edd124cef4
 Size (nicotine-1.0.8.tar.bz2) = 305645 bytes
+SHA1 (patch-setup.py) = d6028d23c499c3aacf6c24238c18404675b203df
diff -r ba8a2bc54bda -r 18f11101714a net/nicotine/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/nicotine/patches/patch-setup.py       Mon Jul 03 11:54:52 2017 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-setup.py,v 1.1 2017/07/03 11:54:52 wiedi Exp $
+
+support PKGLOCALEDIR
+--- setup.py.orig      2003-11-02 03:41:32.000000000 +0000
++++ setup.py
+@@ -19,7 +19,7 @@ for mo in mo_dirs:
+       p, lang = os.path.split(mo)
+       if lang == "nicotine.pot":
+               continue
+-      translations.append((os.path.join(sys.prefix, "share", "locale", lang, "LC_MESSAGES"), [os.path.join(mo, "nicotine.mo")]))
++      translations.append((os.path.join(sys.prefix, os.environ.get("PKGLOCALEDIR", "share"), "locale", lang, "LC_MESSAGES"), [os.path.join(mo, "nicotine.mo")]))
+       
+ if sys.platform.startswith("win"):
+   try:



Home | Main Index | Thread Index | Old Index