Convert some packages to the new template format (half from g and glib deps).
This commit is contained in:
		| @@ -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 | ||||
| } | ||||
| @@ -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 | ||||
| } | ||||
| @@ -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 | ||||
| } | ||||
| @@ -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 | ||||
| 	} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Juan RP
					Juan RP