nawk: switch this to alternatives for 'awk'.
This commit is contained in:
parent
13796a299f
commit
92d22586d8
1 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'nawk'
|
# Template file for 'nawk'
|
||||||
pkgname=nawk
|
pkgname=nawk
|
||||||
version=20121220
|
version=20121220
|
||||||
revision=1
|
revision=2
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
hostmakedepends="bison"
|
hostmakedepends="bison"
|
||||||
short_desc="The one, true implementation of AWK"
|
short_desc="The one, true implementation of AWK"
|
||||||
|
@ -11,8 +11,9 @@ homepage="http://cm.bell-labs.com/who/bwk/"
|
||||||
distfiles="http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz"
|
distfiles="http://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz"
|
||||||
checksum=8dc092165c5a4e1449f964286483d06d0dbfba4b0bd003cb5dab30de8f6d9b83
|
checksum=8dc092165c5a4e1449f964286483d06d0dbfba4b0bd003cb5dab30de8f6d9b83
|
||||||
|
|
||||||
provides="awk-0_1"
|
alternatives="
|
||||||
replaces="awk>=0"
|
awk:/usr/bin/awk:/usr/bin/nawk
|
||||||
|
awk:/usr/share/man/man1/awk.1:/usr/share/man/man1/nawk.1"
|
||||||
|
|
||||||
do_configure() {
|
do_configure() {
|
||||||
sed -i '/maketab/s/CC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/' makefile
|
sed -i '/maketab/s/CC/BUILD_CC/;s/CFLAGS/BUILD_CFLAGS/' makefile
|
||||||
|
@ -23,8 +24,7 @@ do_build() {
|
||||||
make CC=$CC CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS -DHAS_ISBLANK" LDFLAGS="$LDFLAGS"
|
make CC=$CC CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS -DHAS_ISBLANK" LDFLAGS="$LDFLAGS"
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
vinstall a.out 755 usr/bin nawk
|
vbin a.out nawk
|
||||||
vinstall awk.1 644 usr/share/man/man1 nawk.1
|
vman awk.1 nawk.1
|
||||||
vinstall LICENSE 644 usr/share/licenses/nawk
|
vlicense LICENSE
|
||||||
ln -s nawk ${DESTDIR}/usr/bin/awk
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue