2014-05-11 18:42:48 +00:00
|
|
|
# Template file for 'indent'
|
|
|
|
pkgname=indent
|
|
|
|
version=2.2.10
|
2015-05-22 09:47:56 +00:00
|
|
|
revision=3
|
2014-05-11 18:42:48 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--docdir=/usr/share/doc/indent"
|
2015-05-22 09:47:56 +00:00
|
|
|
short_desc="Indent can be used to make code easier to read"
|
2014-05-11 18:42:48 +00:00
|
|
|
maintainer="Enno Boland <eb@s01.de>"
|
|
|
|
homepage="http://www.gnu.org/s/indent/"
|
|
|
|
license="GPL-3"
|
2015-05-22 09:47:56 +00:00
|
|
|
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
|
2014-05-11 18:42:48 +00:00
|
|
|
checksum=8a9b41be5bfcab5d8c1be74204b10ae78789fc3deabea0775fdced8677292639
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
sed -i 's#^docdir = .*$#docdir = @docdir@#' doc/Makefile.in
|
|
|
|
}
|
|
|
|
|
2014-05-11 19:25:29 +00:00
|
|
|
post_build() {
|
|
|
|
# manpages are not created properly, so recreate it
|
2014-05-11 19:35:38 +00:00
|
|
|
unset CC LD AR AS RANLIB CPP CFLAGS CPPFLAGS LDFLAGS
|
2014-05-11 19:25:29 +00:00
|
|
|
cd man
|
|
|
|
rm indent.1
|
2014-05-11 19:35:38 +00:00
|
|
|
make CC=cc LD=cc CFLAGS= LDFLAGS= clean all
|
2014-05-11 19:25:29 +00:00
|
|
|
}
|
|
|
|
|
2014-05-11 18:42:48 +00:00
|
|
|
post_install() {
|
|
|
|
rm $DESTDIR/usr/bin/texinfo2man
|
|
|
|
}
|