<commit_before>DESCRIPTION = "Java Language tools (sun-javac, javah, javap, javadoc and apt) from OpenJDK"
HOMEPAGE = "http://http://openjdk.java.net/groups/compiler"
LICENSE  = "GPL"

PR = "r2"

DEPENDS = "classpath-native fastjar-native ecj-initial virtual/java-native"

S = "${WORKDIR}/icepick-0.0+hg20080118"

SRC_URI = "\
	http://jalimo.evolvis.org/repository/sources/icepick-0.0+hg20080118.tar.bz2;md5sum=ce7b1827e6f4cbe73b9ffa90b0d45a6a \
	http://jalimo.evolvis.org/repository/sources/openjdk-langtools-jdk7-b31.tar.bz2;md5sum=670931f67b2e4ac46c6e0cd15418f2fa \
	file://${PV}-build-fix.patch;patch=1 \
	"	

inherit java autotools native

EXTRA_OECONF = "\
	--with-javac=${STAGING_BINDIR}/ecj-initial \
	--with-vm=${STAGING_BINDIR}/java \
	--with-fastjar=${STAGING_BINDIR}/fastjar \
	--with-classpath=${STAGING_DATADIR}/classpath/glibj.zip \
	--with-langtools-src-dir=${WORKDIR}/openjdk-langtools-jdk7-b31 \
  "

export JAVAC_OPTS="-bootclasspath ${STAGING_DATADIR_JAVA}/share/classpath/glibj.zip -source 5.0"

do_stage_append() {
	[ -f ${bindir}/sun-javac ] && rm ${bindir}/sun-javac

	# Provide javac as sun-javac to not clash with the binary of the same
  # name in ecj-bootstrap-native.
  # This way ecj-bootstrap-native and openjdk-langtools-native can coexist
  # in staging dir.
	mv -f ${bindir}/javac ${bindir}/sun-javac
}<commit_msg>openjdk-langtools-native: Rework do_stage to manually install things.<commit_after>DESCRIPTION = "Java Language tools (sun-javac, javah, javap, javadoc and apt) from OpenJDK"
HOMEPAGE = "http://http://openjdk.java.net/groups/compiler"
LICENSE  = "GPL"

PR = "r3"

DEPENDS = "classpath-native fastjar-native ecj-initial virtual/java-native"

S = "${WORKDIR}/icepick-0.0+hg20080118"

SRC_URI = "\
	http://jalimo.evolvis.org/repository/sources/icepick-0.0+hg20080118.tar.bz2;md5sum=ce7b1827e6f4cbe73b9ffa90b0d45a6a \
	http://jalimo.evolvis.org/repository/sources/openjdk-langtools-jdk7-b31.tar.bz2;md5sum=670931f67b2e4ac46c6e0cd15418f2fa \
	file://${PV}-build-fix.patch;patch=1 \
	"	

inherit java autotools native

EXTRA_OECONF = "\
	--with-javac=${STAGING_BINDIR}/ecj-initial \
	--with-vm=${STAGING_BINDIR}/java \
	--with-fastjar=${STAGING_BINDIR}/fastjar \
	--with-classpath=${STAGING_DATADIR}/classpath/glibj.zip \
	--with-langtools-src-dir=${WORKDIR}/openjdk-langtools-jdk7-b31 \
  "

export JAVAC_OPTS="-bootclasspath ${STAGING_DATADIR_JAVA}/share/classpath/glibj.zip -source 5.0"

do_stage() {
	# Do install step manually to fine control installation names.
	install -d ${bindir}
	install -m 0755 tools/apt ${bindir}
	install -m 0755 tools/javadoc ${bindir}
	install -m 0755 tools/javah ${bindir}
	install -m 0755 tools/javap ${bindir}

	# Provide javac as sun-javac to not clash with the binary of the same
  # name in ecj-bootstrap-native.
  # This way ecj-bootstrap-native and openjdk-langtools-native can coexist
  # in staging dir.
	install -m 0755 tools/javac ${bindir}/sun-javac

	install -d ${libdir}
	install -m 0644 tools.jar ${libdir}
}
{'fraction_non_alphanumeric': 0.14638212737579193, 'fraction_numerical': 0.05468489496498833, 'mean_word_length': 4.424954792043399, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5012572', 'n_tokens_mistral': 1315, 'n_tokens_neox': 1222, 'n_words': 201}