diff options
Diffstat (limited to 'dev-lang/palmos-sdk/palmos-sdk-3.5.ebuild')
-rw-r--r-- | dev-lang/palmos-sdk/palmos-sdk-3.5.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/dev-lang/palmos-sdk/palmos-sdk-3.5.ebuild b/dev-lang/palmos-sdk/palmos-sdk-3.5.ebuild new file mode 100644 index 000000000000..38bb6927d2f4 --- /dev/null +++ b/dev-lang/palmos-sdk/palmos-sdk-3.5.ebuild @@ -0,0 +1,71 @@ +# 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-3.5.ebuild,v 1.1 2003/12/25 19:19:25 plasmaroo Exp $ + +DESCRIPTION="The static libraries and header files needed for developing PalmOS applications." +HOMEPAGE="http://www.palmos.com/" +LICENSE="Palm-SDK" + +SLOT="3.5" +KEYWORDS="~x86" +DEPEND="dev-lang/prc-tools" + +A1="sdk35.tar.gz" +A2="sdk35-update1.tar.gz" +AD1="sdk35-docs.tar.gz" +AD2="sdk35-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/sdk35.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/sdk35.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} + if [ `use doc` ]; then + unpack ${AD1} + unpack ${AD2} + fi + +} + +src_install() { + + dodir ${BASE} + mv Palm\ OS\ 3.5\ Support/GCC\ Libraries ${D}/${BASE}/lib + mv Palm\ OS\ 3.5\ Support/Incs ${D}/${BASE}/include + + if [ `use doc` ]; then + mv docs ${D}/${BASE}/Documentation + mv Examples ${D}/${BASE}/Documentation + fi + +} + +pkg_postinst() +{ + palmdev-prep || eerror "Could not run \`palmdev-prep'!" +} |