diff options
author | Joseph Koshy <jkoshy@FreeBSD.org> | 2007-09-02 05:47:05 +0000 |
---|---|---|
committer | Joseph Koshy <jkoshy@FreeBSD.org> | 2007-09-02 05:47:05 +0000 |
commit | f53e9f699c6bd589e5da51900f3a78ad61f4eafb (patch) | |
tree | f055c955dc238a8358b2792ecdb8cd837f60f2c0 /lang/sml-nj | |
parent | Update to 1.4.7. (diff) |
- Use SUB_FILES and SUB_LIST. [1]
- Tweak pkg-install script (no user visible changes).
Suggested by: sat [1]
Submitted by: Johannes 5 Joemann [MAINTAINER]
Notes
Notes:
svn path=/head/; revision=198625
Diffstat (limited to 'lang/sml-nj')
-rw-r--r-- | lang/sml-nj/Makefile | 6 | ||||
-rw-r--r-- | lang/sml-nj/files/pkg-install.in | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/lang/sml-nj/Makefile b/lang/sml-nj/Makefile index 71465cfc0f70..a46fc785f4d7 100644 --- a/lang/sml-nj/Makefile +++ b/lang/sml-nj/Makefile @@ -32,7 +32,8 @@ USE_GMAKE= yes ONLY_FOR_ARCHS= i386 -PKGINSTALL= ${WRKDIR}/.pkg-install +SUB_FILES= pkg-install +SUB_LIST= EXEBINDIR=${SML_BASERELATIVE}/bin EXENAMES="${SML_EXES}" PKGDEINSTALL= ${PKGINSTALL} SML_BASERELATIVE= lib/sml-nj @@ -91,9 +92,6 @@ do-install: @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${SML_SRCDIR} post-install: - ${SED} -e 's?%%EXENAMES%%?${SML_EXES}?g' \ - -e 's?%%EXEBINDIR%%?${SML_BASERELATIVE}/bin?g' \ - ${FILESDIR}/pkg-install.in > ${PKGINSTALL} PKG_PREFIX=${PREFIX} MULTIEXEC_WRAPPER_VERBOSE=yes \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL diff --git a/lang/sml-nj/files/pkg-install.in b/lang/sml-nj/files/pkg-install.in index 4750e0388775..cdc3840a86c7 100644 --- a/lang/sml-nj/files/pkg-install.in +++ b/lang/sml-nj/files/pkg-install.in @@ -1,7 +1,7 @@ #!/bin/sh # This file was automatically created - don't modify it! #%%SOURCEINFO-START%% -# source version: $Id: pkg-install.in,v 1.15 2007/08/19 17:04:15 joemann Exp $ +# source version: $Id: pkg-install.in,v 1.17 2007/08/30 13:09:47 joemann Exp $ # installed by port/package: %%SOURCEINFO-PACKAGE%% # installed from file: %%SOURCEINFO-FILE%% #%%SOURCEINFO-END%% @@ -98,7 +98,7 @@ fi EPOCH=1 CONFIG_FORMAT=1 MAJOR=1 -MINOR=0 +MINOR=1 VERSION=$EPOCH.$CONFIG_FORMAT.$MAJOR.$MINOR usage() { @@ -130,7 +130,7 @@ version() { which() { local name executable name="$1" - lookup_executable "$CALLED_NAME" + lookup_executable "$name" executable="$lookup_executable_result" [ -z "$executable" ] && return 1 echo "$executable" |