From 11e09629904e99363e30805249870eb0a95b7dd0 Mon Sep 17 00:00:00 2001 From: obache Date: Thu, 27 Mar 2014 07:54:49 +0000 Subject: Fixes hard-coded paths used for installaton of po files. for the case INSTALL != /usr/bin/install and/or PKGLOCALEDIR != share. --- 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(-) create mode 100644 devel/py-newt/patches/patch-po_Makefile (limited to 'devel') diff --git a/devel/py-newt/Makefile b/devel/py-newt/Makefile index f937cdf941b..4a6c3ed53ae 100644 --- a/devel/py-newt/Makefile +++ b/devel/py-newt/Makefile @@ -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 @@ pre-configure: 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 --git a/devel/py-newt/distinfo b/devel/py-newt/distinfo index fefdebd8936..00b20e24503 100644 --- a/devel/py-newt/distinfo +++ b/devel/py-newt/distinfo @@ -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 --git a/devel/py-newt/patches/patch-po_Makefile b/devel/py-newt/patches/patch-po_Makefile new file mode 100644 index 00000000000..b432e4c894f --- /dev/null +++ b/devel/py-newt/patches/patch-po_Makefile @@ -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 + -- cgit v1.2.3