summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2017-07-03 11:54:52 +0000
committerwiedi <wiedi@pkgsrc.org>2017-07-03 11:54:52 +0000
commitad548513baf8e3d4055858f2c7bfeb76c42bd892 (patch)
tree12184d72beb071c009d56f663df0926e983cdcf7
parent5165c8cfd1d0b5d7b0cdbfa2814bd275553f7e00 (diff)
downloadpkgsrc-ad548513baf8e3d4055858f2c7bfeb76c42bd892.tar.gz
support PKGLOCALEDIR
-rw-r--r--net/nicotine/Makefile4
-rw-r--r--net/nicotine/distinfo3
-rw-r--r--net/nicotine/patches/patch-setup.py14
3 files changed, 19 insertions, 2 deletions
diff --git a/net/nicotine/Makefile b/net/nicotine/Makefile
index fb1bde1d40d..ebbc5228266 100644
--- a/net/nicotine/Makefile
+++ b/net/nicotine/Makefile
@@ -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_PKGLOCALEDIR= yes
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 --git a/net/nicotine/distinfo b/net/nicotine/distinfo
index 0f0d701c6a9..4fa3a165931 100644
--- a/net/nicotine/distinfo
+++ b/net/nicotine/distinfo
@@ -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 --git a/net/nicotine/patches/patch-setup.py b/net/nicotine/patches/patch-setup.py
new file mode 100644
index 00000000000..369fa17840a
--- /dev/null
+++ b/net/nicotine/patches/patch-setup.py
@@ -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: