void-packages/srcpkgs/flex/template
2014-02-13 09:13:44 +01:00

38 lines
917 B
Text

# Template file for 'flex'
pkgname=flex
version=2.5.38
revision=1
build_style=gnu-configure
hostmakedepends="help2man bison"
depends="bison libfl-devel-${version}_${revision}"
short_desc="The Fast Lexical Analyzer"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://flex.sourceforge.net"
license="BSD"
distfiles="${SOURCEFORGE_SITE}/flex/${pkgname}-${version}.tar.bz2"
checksum=d42a67ce11b649ce977c8e239d04b2ef1bdbffebb8a79f4f65211ad295f274ec
pre_install() {
sed -i "s|.SUFFIXES: .dvi .html .info .pdf .ps .texi|.SUFFIXES: .info .texi|g" doc/Makefile
}
post_install() {
vinstall COPYING 644 usr/share/licenses/flex
}
libfl_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libfl-devel_package() {
depends="libfl>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}