diff options
author | Fabian Groffen <grobian@gentoo.org> | 2012-09-29 11:08:58 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2012-09-29 11:08:58 +0000 |
commit | e0ef1bb300946c6194a70b7b735a5e7660343ba0 (patch) | |
tree | 25d44725b01c09e10c42363526f3344dd0be2d96 /dev-java | |
parent | Use virtuals for jaf javamail jms and servlet-api. (diff) | |
download | historical-e0ef1bb300946c6194a70b7b735a5e7660343ba0.tar.gz historical-e0ef1bb300946c6194a70b7b735a5e7660343ba0.tar.bz2 historical-e0ef1bb300946c6194a70b7b735a5e7660343ba0.zip |
Initial SoyLatte ebuild, based on the work of Elias Pipping from 2009
Package-Manager: portage-2.2.01.21143-prefix/cvs/Darwin i386
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/soylatte-jdk-bin/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/soylatte-jdk-bin/files/soylatte-jdk-bin-1.6.env | 17 | ||||
-rw-r--r-- | dev-java/soylatte-jdk-bin/metadata.xml | 6 | ||||
-rw-r--r-- | dev-java/soylatte-jdk-bin/soylatte-jdk-bin-1.0.3.ebuild | 97 |
4 files changed, 130 insertions, 0 deletions
diff --git a/dev-java/soylatte-jdk-bin/ChangeLog b/dev-java/soylatte-jdk-bin/ChangeLog new file mode 100644 index 000000000000..ff6365643cda --- /dev/null +++ b/dev-java/soylatte-jdk-bin/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-java/soylatte-jdk-bin +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/soylatte-jdk-bin/ChangeLog,v 1.1 2012/09/29 11:08:58 grobian Exp $ + +*soylatte-jdk-bin-1.0.3 (29 Sep 2012) + + 29 Sep 2012; Fabian Groffen <grobian@gentoo.org> + +files/soylatte-jdk-bin-1.6.env, +metadata.xml, + +soylatte-jdk-bin-1.0.3.ebuild: + Initial SoyLatte ebuild, based on the work of Elias Pipping from 2009 diff --git a/dev-java/soylatte-jdk-bin/files/soylatte-jdk-bin-1.6.env b/dev-java/soylatte-jdk-bin/files/soylatte-jdk-bin-1.6.env new file mode 100644 index 000000000000..dfedc82a6042 --- /dev/null +++ b/dev-java/soylatte-jdk-bin/files/soylatte-jdk-bin-1.6.env @@ -0,0 +1,17 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/soylatte-jdk-bin/files/soylatte-jdk-bin-1.6.env,v 1.1 2012/09/29 11:08:58 grobian Exp $ + +VERSION="Landon Fuller's @PV@" +JAVA_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/@P@" +JDK_HOME="@GENTOO_PORTAGE_EPREFIX@/opt/@P@" +JAVAC=${JAVA_HOME}/bin/javac +PATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin" +ROOTPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin" +LDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/jre/lib/@PLATFORM@/xawt/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/" +MANPATH="@GENTOO_PORTAGE_EPREFIX@/opt/@P@/man" +PROVIDES_TYPE="JDK JRE" +PROVIDES_VERSION="1.6" +BOOTCLASSPATH="${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/jre/lib/i18n.jar:${JAVA_HOME}/jre/lib/sunrsasign.jar:${JAVA_HOME}/jre/lib/jsse.jar:${JAVA_HOME}/jre/lib/jce.jar:${JAVA_HOME}/jre/lib/charsets.jar" +GENERATION="2" +ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH" diff --git a/dev-java/soylatte-jdk-bin/metadata.xml b/dev-java/soylatte-jdk-bin/metadata.xml new file mode 100644 index 000000000000..d539ee98d50c --- /dev/null +++ b/dev-java/soylatte-jdk-bin/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>prefix</herd> +<longdescription>SoyLatte: Java 6 Port for Mac OS X 10.4 and 10.5 (Intel)</longdescription> +</pkgmetadata> diff --git a/dev-java/soylatte-jdk-bin/soylatte-jdk-bin-1.0.3.ebuild b/dev-java/soylatte-jdk-bin/soylatte-jdk-bin-1.0.3.ebuild new file mode 100644 index 000000000000..d109e8a74afc --- /dev/null +++ b/dev-java/soylatte-jdk-bin/soylatte-jdk-bin-1.0.3.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/soylatte-jdk-bin/soylatte-jdk-bin-1.0.3.ebuild,v 1.1 2012/09/29 11:08:58 grobian Exp $ + +EAPI="3" + +JAVA_SUPPORTS_GENERATION_1="true" +inherit java-vm-2 multilib + +DESCRIPTION="Landon Fuller's Java 6 for Mac OS X 10.4 and 10.5" +HOMEPAGE="http://landonf.bikemonkey.org/static/soylatte/" +DLURL="http://landonf.bikemonkey.org/static/soylatte/bsd-dist/javasrc_1_6_jrl_darwin" +SRC_URI=" + x86-macos? ( ${DLURL}/soylatte16-i386-${PV}.tar.bz2 ) + x64-macos? ( ${DLURL}/soylatte16-amd64-${PV}.tar.bz2 ) +" +SLOT="1.6" +LICENSE="sun-jrl" +KEYWORDS="~x86-macos ~x64-macos" +IUSE="examples" + +RDEPEND="dev-db/unixODBC" + +JAVA_PROVIDE="jdbc-stdext" + +MY_P=soylatte16-i386-${PV} +use x64-macos && MY_P=soylatte16-amd64-${PV} + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # fix install_names + local original_root=/data/Users/landonf/Documents/Code/Java/javasrc_1_6_jrl_darwin_stable/control/build/bsd-i586 + local original_demo=${original_root}/demo + local original_lib=${original_root}/lib + for dir in demo jre ; do + for dynamic_lib in $(find ${dir} -name '*.dylib'); do + install_name_tool \ + -id "${EPREFIX}"/opt/${P}/${dynamic_lib} \ + ${dynamic_lib} + for linked_against in $(scanmacho -BF'%n#f' ${dynamic_lib} | tr ',' ' '); do + case ${linked_against} in + ${original_lib}/*) + install_name_tool -change \ + ${linked_against} \ + "${EPREFIX}"/opt/${P}/jre${linked_against#${original_root}} \ + ${dynamic_lib} + ;; + ${original_demo}/*) + install_name_tool -change \ + ${linked_against} \ + "${EPREFIX}"/opt/${P}${linked_against#${original_root}} \ + ${dynamic_lib} + ;; + libjvm.dylib) + # default to client JVM + install_name_tool -change \ + ${linked_against} \ + "${EPREFIX}"/opt/${P}/jre/lib/$(use x86-macos && echo i386 || echo amd64)/client/libjvm.dylib \ + ${dynamic_lib} + ;; + */libodbc*.dylib) + install_name_tool -change \ + ${linked_against} \ + "${EPREFIX}"/usr/$(get_libdir)/${linked_against##*/} \ + ${dynamic_lib} + ;; + esac + done + done + done +} + +src_install() { + local dirs="bin include jre lib man" + dodir /opt/${P} + + cp -pPR $dirs "${ED}/opt/${P}/" || die "failed to copy" + dodoc COPYRIGHT || die + dohtml README.html || die + + cp -pP src.zip "${ED}/opt/${P}/" || die + + if use examples; then + cp -pPR demo sample "${ED}/opt/${P}/" || die + fi + + # create dir for system preferences + dodir /opt/${P}/jre/.systemPrefs + # Create files used as storage for system preferences. + touch "${ED}"/opt/${P}/jre/.systemPrefs/.system.lock + chmod 644 "${ED}"/opt/${P}/jre/.systemPrefs/.system.lock + touch "${ED}"/opt/${P}/jre/.systemPrefs/.systemRootModFile + chmod 644 "${ED}"/opt/${P}/jre/.systemPrefs/.systemRootModFile + + set_java_env +} |