Mike Gilbert avatar Mike Gilbert committed 7b553c4

Add slf4j-api from gentoo

Comments (0)

Files changed (4)

dev-java/slf4j-api/Manifest

+DIST slf4j-api-1.5.11-sources.jar 42350 RMD160 bb83b5f6c45ef2295718134b9fa2cb05d1347db0 SHA1 8a5094c309596e0a926431cd47f2bb0f867f6270 SHA256 1ab1f0772dd8b232b38fc47a2b3fb9c94c069e5f38ce943ee78601840c452b09

dev-java/slf4j-api/files/build.xml

+<project name="slf4j-api" default="jar">
+	<target name="compile">
+		<mkdir dir="build"/>
+		<javac srcdir="." destdir="build" classpath="${gentoo.classpath}">
+		</javac>
+	</target>
+
+	<target name="jar" depends="compile">
+		<jar destfile="slf4j-api.jar" basedir="build">
+			<exclude name="org/slf4j/impl/**"/>
+		</jar>
+	</target>
+
+	<target name="javadoc" depends="compile">
+		<mkdir dir="docs"/>
+		<javadoc sourcepath="." destdir="docs" classpath="${gentoo.classpath}"/>
+	</target>
+
+</project>

dev-java/slf4j-api/metadata.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <herd>java</herd>
+</pkgmetadata>

dev-java/slf4j-api/slf4j-api-1.5.11.ebuild

+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/slf4j-api/slf4j-api-1.5.11.ebuild,v 1.5 2010/10/14 16:59:11 ranger Exp $
+
+EAPI="2"
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Simple Logging Facade for Java"
+HOMEPAGE="http://www.slf4j.org/"
+# Extract from http://www.slf4j.org/dist/${P/-api/}.tar.gz
+SRC_URI="mirror://gentoo/${P}-sources.jar"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.4"
+DEPEND=">=virtual/jdk-1.4
+	app-arch/unzip"
+
+S="${WORKDIR}"
+
+java_prepare() {
+	cp -v "${FILESDIR}"/build.xml . || die
+}
+
+src_install() {
+	java-pkg_dojar ${PN}.jar
+	use doc && java-pkg_dojavadoc docs
+	use source && java-pkg_dosrc org
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.