Add gperf package

This commit is contained in:
Alexpux 2013-11-07 18:02:01 +04:00
parent 7967b78055
commit 5c54bb3774
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- gperf-3.0.4/tests/test2.c.orig 2013-11-07 16:34:12.769600000 +0400
+++ gperf-3.0.4/tests/test2.c 2013-11-07 16:34:48.782000000 +0400
@@ -15,7 +15,7 @@
# undef O_BINARY
#endif
#if O_BINARY
-# define SET_BINARY(f) setmode (f, O_BINARY)
+# define SET_BINARY(f) _setmode (f, O_BINARY)
#else
# define SET_BINARY(f) (void)0
#endif

16
gperf/gperf.install Normal file
View File

@ -0,0 +1,16 @@
infodir=usr/share/info
file=gperf.info.gz
post_install() {
[ -x usr/bin/install-info ] || return 0
install-info $infodir/$file $infodir/dir 2> /dev/null
}
post_upgrade() {
post_install $1
}
pre_remove() {
[ -x usr/bin/install-info ] || return 0
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
}