1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

- 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]
This commit is contained in:
Joseph Koshy 2007-09-02 05:47:05 +00:00
parent 37cb57cd68
commit f53e9f699c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198625
2 changed files with 5 additions and 7 deletions

View File

@ -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

View File

@ -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"