diff options
author | Tim Yamin <plasmaroo@gentoo.org> | 2003-12-25 19:19:43 +0000 |
---|---|---|
committer | Tim Yamin <plasmaroo@gentoo.org> | 2003-12-25 19:19:43 +0000 |
commit | 4bc1b3cf76f17e6d03681d0c6ae0659bc6a1e785 (patch) | |
tree | 9facbdf53db5493eddbc0b9465865a084ec6f101 /dev-lang/palmos-sdk/palmos-sdk-4.0.ebuild | |
parent | Initial commit, needed by palmos-sdk. (diff) | |
download | historical-4bc1b3cf76f17e6d03681d0c6ae0659bc6a1e785.tar.gz historical-4bc1b3cf76f17e6d03681d0c6ae0659bc6a1e785.tar.bz2 historical-4bc1b3cf76f17e6d03681d0c6ae0659bc6a1e785.zip |
Initial commit - this closes bug #16998.
Diffstat (limited to 'dev-lang/palmos-sdk/palmos-sdk-4.0.ebuild')
-rw-r--r-- | dev-lang/palmos-sdk/palmos-sdk-4.0.ebuild | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/dev-lang/palmos-sdk/palmos-sdk-4.0.ebuild b/dev-lang/palmos-sdk/palmos-sdk-4.0.ebuild new file mode 100644 index 000000000000..52bd36e0c41d --- /dev/null +++ b/dev-lang/palmos-sdk/palmos-sdk-4.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/palmos-sdk/palmos-sdk-4.0.ebuild,v 1.1 2003/12/25 19:19:25 plasmaroo Exp $ + +inherit rpm + +DESCRIPTION="The static libraries and header files needed for developing PalmOS applications." +HOMEPAGE="http://www.palmos.com/" +LICENSE="Palm-SDK" + +SLOT="4.0" +KEYWORDS="~x86" +DEPEND="dev-lang/prc-tools" + +A1="sdk40.tar.gz" +A2="sdk40upd1.tar.gz" +AD1="sdk40-docs.zip" +AD2="sdk40-examples.tar.gz" +A="${A1} ${A2}" + +IUSE="" +BASE="/opt/palmdev/sdk-${SLOT}" +RESTRICT="nostrip" +S=${WORKDIR} + +pkg_setup() { + + if ! ( [ -f ${DISTDIR}/${A1} ] && [ -f ${DISTDIR}/${A2} ] ); then + echo + eerror "Please go to http://www.palmos.com/cgi-bin/sdk40.cgi"; \ + eerror "and download ${A1} and ${A2} and place them"; \ + eerror "in ${DISTDIR} and emerge this package again." + die + fi + + if ( ( [ ! -f ${DISTDIR}/${AD1} ] || [ ! -f ${DISTDIR}/${AD2} ] ) && [ `use doc` ] ); then + echo + eerror "Please go to http://www.palmos.com/cgi-bin/sdk40.cgi" + eerror "and download ${AD1} and ${AD2} and place them in" + eerror "${DISTDIR} and emerge this package again or disable the \`doc'" + eerror "USE flag." + die + fi + +} + +src_unpack() { + + unpack ${A} + rpm_unpack *.rpm + rm *.rpm + + if [ `use doc` ]; then + unpack ${AD1} + unpack ${AD2} + fi + +} + +src_install() { + + dodir ${BASE} + cp -Rf PalmOS-4.0-SDK-Update-1/PalmOS-Unix/PalmOS-Support/* opt/palmdev/sdk-4 + cp -Rf PalmOS-4.0-SDK-Update-1/PalmOS-Unix/Documentation/* opt/palmdev/sdk-4 + cp -PRf opt/palmdev/sdk-4/* ${D}/opt/palmdev/sdk-${SLOT} + mv Documentation ${D}/opt/palmdev/sdk-${SLOT} + mv Examples ${D}/opt/palmdev/sdk-${SLOT}/Documentation + +} + +pkg_postinst() +{ + palmdev-prep || eerror "Could not run \`palmdev-prep'!" +} |