Convert some packages to the new template format (half from g and glib deps).

This commit is contained in:
Juan RP
2013-04-12 13:13:49 +02:00
parent b5076c716c
commit fe7a5e4d8a
98 changed files with 912 additions and 753 deletions

View File

@@ -1,13 +0,0 @@
# Template file for 'git-docs'.
#
noarch=yes
short_desc="${sourcepkg} documentation"
long_desc="${long_desc}
This package contains the full git documentation (manual pages)."
do_install() {
for f in man1 man5 man7; do
vmove usr/share/man/${f} usr/share/man
done
}

View File

@@ -1,13 +0,0 @@
# Template file for 'git-perl'.
#
noarch=yes
depends="git perl"
short_desc="${sourcepkg} perl bindings"
long_desc="${long_desc}
This package contains the Perl bindings."
do_install() {
vmove usr/share/perl5 usr/share
vmove usr/share/man/man3 usr/share/man
}

View File

@@ -1,13 +0,0 @@
# Template file for 'git-python'.
#
noarch=yes
pycompile_module="git_remote_helpers"
depends="git python"
short_desc="${sourcepkg} python bindings"
long_desc="${long_desc}
This package contains the Python bindings for GIT."
do_install() {
vmove "usr/lib/python*" usr/lib
}

View File

@@ -12,15 +12,11 @@ license="GPL-2"
distfiles="http://git-core.googlecode.com/files/git-$version.tar.gz"
checksum=c2f35bcefa4f62a54c4bde41cc0f1cd3ddf03e9a6bc8a79557f1683789f213e6
subpackages="git-docs git-perl git-python"
# Required by https://
depends="ca-certificates"
hostmakedepends="xmlto>=0.0.25_2 asciidoc perl"
makedepends="openssl-devel libcurl-devel expat-devel python-devel"
if [ "$CROSS_BUILD" ]; then
subpackages="git-perl"
configure_args="${configure_args} --without-python
configure_args+=" --without-python
ac_cv_fread_reads_directories=no
ac_cv_snprintf_returns_bogus=no"
hostmakedepends="perl"
@@ -40,3 +36,44 @@ post_install() {
vinstall contrib/completion/git-completion.bash 644 \
usr/share/bash-completion/completions git
}
if [ -z "$CROSS_BUILD" ]; then
git-docs_package() {
noarch=yes
short_desc+=" -- documentation"
pkg_install() {
for f in man1 man5 man7; do
vmove usr/share/man/${f}
done
}
}
git-python_package() {
noarch=yes
pycompile_module="git_remote_helpers"
depends="git python"
short_desc+=" -- python bindings"
pkg_install() {
vmove "usr/lib/python*"
}
}
fi # !CROSS_BUILD
git-perl_package() {
noarch=yes
depends="git perl"
short_desc+=" -- perl bindings"
pkg_install() {
vmove usr/share/perl5
vmove usr/share/man/man3
}
}
git_package() {
# Required by https://
depends="ca-certificates"
pkg_install() {
vmove usr
}
}