pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/sr Cleaned up the package. The only functional ch...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8ae127f9dd5f
branches:  trunk
changeset: 536013:8ae127f9dd5f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Dec 01 12:49:05 2007 +0000

description:
Cleaned up the package. The only functional change is that the man/man3
directory is created, which means that all files are properly installed.

diffstat:

 lang/sr/Makefile |  32 +++++++++++---------------------
 1 files changed, 11 insertions(+), 21 deletions(-)

diffs (50 lines):

diff -r ab88ab0c6579 -r 8ae127f9dd5f lang/sr/Makefile
--- a/lang/sr/Makefile  Sat Dec 01 12:32:13 2007 +0000
+++ b/lang/sr/Makefile  Sat Dec 01 12:49:05 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2007/03/25 10:04:28 wiz Exp $
+# $NetBSD: Makefile,v 1.16 2007/12/01 12:49:05 rillig Exp $
 #
 
 DISTNAME=              sr233
@@ -13,30 +13,20 @@
 COMMENT=               The SR language compiler and run time system
 
 WRKSRC= ${WRKDIR}
-
-ONLY_FOR_PLATFORM=     NetBSD-[2-9]*-*
-
-
 TEST_TARGET=           verify
+INSTALLATION_DIRS_FROM_PLIST=yes
 
-pre-configure:
-                       ${MV} ${WRKSRC}/Configuration \
-                               ${WRKSRC}/Configuration.template
-                       ${SED}  -e 's,_LOCALBASE_,${LOCALBASE},g' \
-                               -e 's,_WRKSRC_,${WRKSRC},g' \
-                               -e 's,_XINC_,${X11BASE}/include,g' \
-                               -e 's,_XLIB_,${X11BASE}/lib,g' \
-                               ${WRKSRC}/Configuration.template \
-                               > ${WRKSRC}/Configuration
-
-pre-install:
-                       -${MKDIR} ${PREFIX}/lib/sr
+SUBST_CLASSES+=                sr
+SUBST_STAGE.sr=                pre-configure
+SUBST_FILES.sr=                Configuration
+SUBST_SED.sr=          -e 's,_LOCALBASE_,${LOCALBASE},g'
+SUBST_SED.sr+=         -e 's,_WRKSRC_,${WRKSRC},g'
+SUBST_SED.sr+=         -e 's,_XINC_,${X11BASE}/include,g'
+SUBST_SED.sr+=         -e 's,_XLIB_,${X11BASE}/lib,g'
 
 post-install:
-                       ${INSTALL_PROGRAM} ${WRKSRC}/csw/cstest ${PREFIX}/bin
-                       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sr
-                       cd ${WRKSRC}/ps && \
-                               ${INSTALL_DATA} *.ps ${PREFIX}/share/doc/sr
+       ${INSTALL_PROGRAM} ${WRKSRC}/csw/cstest ${PREFIX}/bin
+       cd ${WRKSRC}/ps && ${INSTALL_DATA} *.ps ${PREFIX}/share/doc/sr
 
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index