1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Add wrapper script to respect PREFIX at runtime.

- Use IA32_BINARY_PORT instead of ONLY_FOR_ARCHS.
- Bump PORTREVISION.

Approved by:	portmgr (erwin)
This commit is contained in:
Alejandro Pulver 2006-10-20 18:08:06 +00:00
parent be9e08387e
commit 8a47c6dfcf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=175437
2 changed files with 12 additions and 4 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= ch
PORTVERSION= 5.1.0
PORTREVISION= 1
CATEGORIES= shells
MASTER_SITES= http://www.softintegration.com/download/software/release/FreeBSD/
DISTNAME= chstandard-${PORTVERSION}.freebsd5.1
@ -14,13 +15,13 @@ DISTNAME= chstandard-${PORTVERSION}.freebsd5.1
MAINTAINER= alepulver@FreeBSD.org
COMMENT= An embeddable C/C++ interpreter/shell
# possibly ia64?
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= is an i386 binary
IA32_BINARY_PORT= yes
NO_BUILD= yes
DATADIR= ${PREFIX}/${PORTNAME}
SUB_FILES= ${PORTNAME}
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500000
@ -34,7 +35,7 @@ LIB_DEPENDS+= c.4:${PORTSDIR}/misc/compat4x
do-install:
${MKDIR} ${DATADIR}
${TAR} zxf ${WRKSRC}/ch.bin -C ${DATADIR}
${LN} -s ${DATADIR}/bin/ch ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
post-install:
@if ${GREP} -q '${PREFIX}/bin/ch' /etc/shells; then ${TRUE}; else \

7
shells/ch/files/ch.in Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# This program needs to know where to find its data, so we pass that
# information using the CHHOME environment variable.
export CHHOME="%%DATADIR%%"
exec "$CHHOME/bin/ch" "$@"