2015-06-19 04:12:28 +00:00
|
|
|
# Template file for 'cdecl'
|
|
|
|
pkgname=cdecl
|
|
|
|
version=2.5
|
2016-11-19 16:53:44 +00:00
|
|
|
revision=4
|
2016-05-24 11:15:33 +00:00
|
|
|
wrksrc="${pkgname}-blocks-${version}"
|
2015-06-19 04:12:28 +00:00
|
|
|
build_style=gnu-makefile
|
2016-05-24 11:15:33 +00:00
|
|
|
make_build_args="-e"
|
2015-06-19 04:12:28 +00:00
|
|
|
hostmakedepends="flex"
|
|
|
|
makedepends="readline-devel"
|
|
|
|
short_desc="Compose C and C++ type declarations"
|
|
|
|
maintainer="beefcurtains <beefcurtains@voidlinux.eu>"
|
|
|
|
license="GPL-3"
|
|
|
|
homepage="http://${pkgname}.org/"
|
|
|
|
distfiles="${homepage}files/${wrksrc}.tar.gz"
|
|
|
|
checksum=9ee6402be7e4f5bb5e6ee60c6b9ea3862935bf070e6cecd0ab0842305406f3ac
|
|
|
|
CFLAGS="-DUSE_READLINE"
|
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
flex -l -o cdlex.c cdlex.l
|
|
|
|
sed -i 's/getline/cdgetline/' cdecl.c
|
2016-05-24 11:15:33 +00:00
|
|
|
export LIBS="$LDFLAGS -lreadline"
|
2015-06-19 04:12:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vbin c++decl
|
|
|
|
vbin cdecl
|
|
|
|
vman cdecl.1
|
|
|
|
vman c++decl.1
|
|
|
|
}
|