pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-newt Fixes hard-coded paths used for installa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3c06c528a874
branches:  trunk
changeset: 632399:3c06c528a874
user:      obache <obache%pkgsrc.org@localhost>
date:      Thu Mar 27 07:54:49 2014 +0000

description:
Fixes hard-coded paths used for installaton of po files.
for the case INSTALL != /usr/bin/install and/or PKGLOCALEDIR != share.

diffstat:

 devel/py-newt/Makefile                  |   7 ++++++-
 devel/py-newt/distinfo                  |   3 ++-
 devel/py-newt/patches/patch-po_Makefile |  16 ++++++++++++++++
 3 files changed, 24 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r f17d4aafdbdb -r 3c06c528a874 devel/py-newt/Makefile
--- a/devel/py-newt/Makefile    Thu Mar 27 06:26:24 2014 +0000
+++ b/devel/py-newt/Makefile    Thu Mar 27 07:54:49 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2014/01/25 10:30:04 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2014/03/27 07:54:49 obache Exp $
 
 DISTNAME=      newt-0.52.16
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -25,6 +25,11 @@
        cd ${WRKSRC}; \
        aclocal && autoconf
 
+SUBST_CLASSES+=                inst-po
+SUBST_STAGE.inst-po=   pre-build
+SUBST_FILES.inst-po=   po/Makefile
+SUBST_VARS.inst-po=    INSTALL PKGLOCALEDIR
+
 .include "../../devel/libslang2/buildlink3.mk"
 .include "../../devel/popt/buildlink3.mk"
 .include "../../lang/tcl/buildlink3.mk"
diff -r f17d4aafdbdb -r 3c06c528a874 devel/py-newt/distinfo
--- a/devel/py-newt/distinfo    Thu Mar 27 06:26:24 2014 +0000
+++ b/devel/py-newt/distinfo    Thu Mar 27 07:54:49 2014 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1 2014/01/01 06:55:23 ryoon Exp $
+$NetBSD: distinfo,v 1.2 2014/03/27 07:54:49 obache Exp $
 
 SHA1 (newt-0.52.16.tar.gz) = 678bf57e0a7e28db4da1a2951dbb65f9ce882f73
 RMD160 (newt-0.52.16.tar.gz) = 0e575dd60b95f2b4fd748f98793be97168793a5f
 Size (newt-0.52.16.tar.gz) = 183487 bytes
 SHA1 (patch-Makefile.in) = cae82773fcb94dc9b9aa4349b52308e3136843f2
 SHA1 (patch-configure.ac) = 8c685e25e89503cb5e62362c8b8132931d4c6184
+SHA1 (patch-po_Makefile) = dfa6352d1f10246bd7d2f9cd4f256394dc1a674a
diff -r f17d4aafdbdb -r 3c06c528a874 devel/py-newt/patches/patch-po_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-newt/patches/patch-po_Makefile   Thu Mar 27 07:54:49 2014 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-po_Makefile,v 1.1 2014/03/27 07:54:49 obache Exp $
+
+* fixes hard-coded paths
+
+--- po/Makefile.orig   2013-08-06 15:46:42.000000000 +0000
++++ po/Makefile
+@@ -1,7 +1,7 @@
+-INSTALL= /usr/bin/install -c
++INSTALL= @INSTALL@ -c
+ INSTALL_PROGRAM= ${INSTALL}
+ INSTALL_DATA= ${INSTALL} -m 644
+-INSTALLNLSDIR=$(datadir)/locale
++INSTALLNLSDIR=${DESTDIR}${PREFIX}/@PKGLOCALEDIR@/locale
+ 
+ MSGMERGE = msgmerge
+ 



Home | Main Index | Thread Index | Old Index