Add gperf package
This commit is contained in:
parent
7967b78055
commit
5c54bb3774
11
gperf/gperf-3.0.4-tests-cygwin-setmode.patch
Normal file
11
gperf/gperf-3.0.4-tests-cygwin-setmode.patch
Normal 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
16
gperf/gperf.install
Normal 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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user