1 # Copyright 2011 microcai
2 # Distributed under the terms of the GNU General Public License v2
5 # @ECLASS: googlecode.eclass
6 # @MAINTAINER: microcai
7 # microcaicai@gentoo.org
10 # Exports portage base functions used by ebuilds written for packages hosting on google code.
12 inherit eutils autotools
14 if [ "$HOMEPAGE" = "" ]; then
15 HOMEPAGE
="http://${PN}.googlecode.com"
18 if [ "${PV##*.}" = "9999" ]; then
20 ESVN_REPO_URI
="${HOMEPAGE}/svn/trunk/"
22 if [ "${TAR_SUFFIX}" = "" ] ; then
23 SRC_URI
="http://${PN}.googlecode.com/files/${P}.tar.bz2"
25 SRC_URI
="http://${PN}.googlecode.com/files/${P}.${TAR_SUFFIX}"
31 EXPORT_FUNCTIONS src_install
33 *) die
"EAPI=${EAPI} is not supported" ;;
36 googlecode_src_install
(){
37 emake
install DESTDIR
=${D} || die