pcre: convert to the new template format.
This commit is contained in:
parent
d395b12793
commit
2062680402
4 changed files with 39 additions and 31 deletions
|
@ -1,9 +0,0 @@
|
|||
# Template file for 'libpcre'.
|
||||
#
|
||||
short_desc="${short_desc} - shared libraries"
|
||||
replaces="pcre<8.11"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libpcre.so*" usr/lib
|
||||
vmove "usr/lib/libpcreposix.so*" usr/lib
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
# Template file for 'libpcrecpp'.
|
||||
#
|
||||
short_desc="${short_desc} - C++ shared libraries"
|
||||
|
||||
do_install() {
|
||||
vmove "usr/lib/libpcrecpp.so*" usr/lib
|
||||
}
|
|
@ -1,14 +0,0 @@
|
|||
# Template file for 'pcre-devel'.
|
||||
#
|
||||
noarch=yes
|
||||
depends="zlib-devel bzip2-devel libpcre>=${version} libpcrecpp>=${version}"
|
||||
short_desc="${short_desc} (development files)"
|
||||
|
||||
do_install() {
|
||||
vmove usr/bin/pcre-config usr/bin
|
||||
vmove usr/include usr
|
||||
vmove usr/lib/pkgconfig usr/lib
|
||||
vmove usr/share/man/man1/pcre-config.1.gz usr/share/man/man1
|
||||
vmove usr/share/man/man3 usr/share/man
|
||||
vmove usr/share/doc usr/share
|
||||
}
|
|
@ -2,7 +2,6 @@
|
|||
pkgname=pcre
|
||||
version=8.32
|
||||
revision=2
|
||||
subpackages="libpcre libpcrecpp pcre-devel"
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-utf8 --enable-unicode-properties --with-pic
|
||||
--enable-pcregrep-libz --enable-pcregrep-libbz2 --enable-newline-is-anycrlf
|
||||
|
@ -22,3 +21,42 @@ if [ "$CROSS_BUILD" ]; then
|
|||
autoreconf -fi
|
||||
}
|
||||
fi
|
||||
|
||||
|
||||
libpcrecpp_package() {
|
||||
short_desc+=" - C++ shared libraries"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libpcrecpp.so*"
|
||||
}
|
||||
}
|
||||
|
||||
libpcre_package() {
|
||||
short_desc="${short_desc} - shared libraries"
|
||||
replaces="pcre<8.11"
|
||||
|
||||
pkg_install() {
|
||||
vmove "usr/lib/libpcre.so*"
|
||||
vmove "usr/lib/libpcreposix.so*"
|
||||
}
|
||||
}
|
||||
|
||||
pcre-devel_package() {
|
||||
depends="zlib-devel bzip2-devel libpcre>=${version} libpcrecpp>=${version}"
|
||||
short_desc="${short_desc} (development files)"
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/bin/pcre-config
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove usr/share/man/man1/pcre-config.1
|
||||
vmove usr/share/man/man3
|
||||
vmove usr/share/doc
|
||||
}
|
||||
}
|
||||
|
||||
pcre_package() {
|
||||
pkg_install() {
|
||||
vmove usr
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue