add jpodrenderer
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1151 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
parent
2948bc6227
commit
d3ff193fc9
5
dev-java/jPodRenderer/Manifest
Normal file
5
dev-java/jPodRenderer/Manifest
Normal file
@ -0,0 +1,5 @@
|
||||
AUX build.properties 206 RMD160 c1af7d5c00ba121595c480ed69b1d46d599ded0f SHA1 615484e4d408d6bdc8e72511b1fa927633abcbf8 SHA256 ea963899bb772587a3bbf9321d5b26e440886c975bf7cd25c3729a47884b1326
|
||||
AUX build.xml 4232 RMD160 74131b8b0f2c9747fbb78cdd95b5f130c86f7f78 SHA1 c4e4b04f4ccde79db5ee4fce3d20f1696286c04e SHA256 9c13c78fde850ec196c793c783338252def30d40adc94ab6afcd007f815f46ba
|
||||
DIST jPodRenderer.5.0.20081218.zip 8216503 RMD160 ee160d1fd8fe0f61e2bb80de455c35b46a4e67e2 SHA1 8a6d7bb06b56fb174b9c1c2c529deded5ddd87de SHA256 b94a3167df467415bd9e79aee9560af678c3578991bca52f82e69f54a47974ff
|
||||
EBUILD jPodRenderer-5.0.20081218.ebuild 2359 RMD160 d2d4ff8b68e7d6809397a764526eee99578dfbef SHA1 0781bf11776b809aa12f6cc04816c221e5f75963 SHA256 73ef420d4e5048d8355bd7b26b2a080f42582c504933e9c647297b1b2b6ec9a6
|
||||
MISC metadata.xml 159 RMD160 7da5c733c224383ffe350605bc36721a3ff2536f SHA1 99c2655c7bbee2cbc8c79edb2d00d481d62faf95 SHA256 a4ced33e98b00e3a3f725c4c40ef8e76c338db53389465ef871105fbe6e8cbbb
|
18
dev-java/jPodRenderer/files/build.properties
Normal file
18
dev-java/jPodRenderer/files/build.properties
Normal file
@ -0,0 +1,18 @@
|
||||
#where classes are compiled, jars distributed, javadocs created and release created
|
||||
build.dir=build
|
||||
|
||||
#libraries
|
||||
libs.dir=lib
|
||||
jai_codec.jar.name=jai_codec
|
||||
jai_core.jar.name=jai_core
|
||||
jai_imageio.jar.name=jai_imageio
|
||||
jbig2.jar.name=jbig2
|
||||
jna.jar.name=jna
|
||||
swt.jar.name=swt
|
||||
isrt.jar.name=isrt
|
||||
isnativec.jar.name=isnativec
|
||||
isfreetype.jar.name=isfreetype
|
||||
iscwt.jar.name=iscwt
|
||||
jPod.jar.name=jPod
|
||||
jPodRenderer.jar.name=jPodRenderer
|
||||
|
110
dev-java/jPodRenderer/files/build.xml
Normal file
110
dev-java/jPodRenderer/files/build.xml
Normal file
@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="jPodRenderer" default="build-jars" basedir="../">
|
||||
<description>
|
||||
This is a window toolkit and basic rendering abstraction layer
|
||||
</description>
|
||||
|
||||
<!-- set global properties for this build -->
|
||||
<property name="user.name" value="intarsys consulting GmbH"/>
|
||||
<property name="jPodRenderer.src.dir" location="src"/>
|
||||
<property name="jPodRenderer.resource.dir" location="resource"/>
|
||||
|
||||
<target name="init">
|
||||
<property file="ant/build.properties" />
|
||||
|
||||
<property name="jPodRenderer.build.root" location="${build.dir}/jPodRenderer"/>
|
||||
<property name="jPodRenderer.build.dir" location="${jPodRenderer.build.root}/build"/>
|
||||
<property name="jPodRenderer.dist.dir" location="${jPodRenderer.build.root}/dist"/>
|
||||
<property name="jPodRenderer.javadoc.dir" location="${jPodRenderer.build.root}/javadoc"/>
|
||||
|
||||
</target>
|
||||
|
||||
<target name="make-structure" depends="init">
|
||||
<!-- Create the build directory structure used by compile -->
|
||||
<mkdir dir="${jPodRenderer.build.dir}"/>
|
||||
<mkdir dir="${jPodRenderer.dist.dir}"/>
|
||||
<mkdir dir="${jPodRenderer.javadoc.dir}"/>
|
||||
</target>
|
||||
|
||||
<target name="clean" depends="init" description="clean up" >
|
||||
<!-- Delete the ${dist} directory trees -->
|
||||
<delete dir="${jPodRenderer.javadoc.dir}"/>
|
||||
<delete dir="${jPodRenderer.dist.dir}"/>
|
||||
<delete dir="${jPodRenderer.build.dir}"/>
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="make-structure" description="jPodRenderer compile" >
|
||||
<!-- Construct classpath -->
|
||||
<path id="jPodRenderer.classpath">
|
||||
<fileset dir="${libs.dir}">
|
||||
<include name="**/${isrt.jar.name}.jar"/>
|
||||
<include name="**/${isnativec.jar.name}.jar"/>
|
||||
<include name="**/${isfreetype.jar.name}.jar"/>
|
||||
<include name="**/${iscwt.jar.name}.jar"/>
|
||||
<include name="**/${jPod.jar.name}.jar"/>
|
||||
<include name="**/${jbig2.jar.name}.jar"/>
|
||||
<include name="**/${jna.jar.name}.jar"/>
|
||||
<include name="**/${swt.jar.name}.jar"/>
|
||||
<include name="**/${jai_codec.jar.name}.jar"/>
|
||||
<include name="**/${jai_core.jar.name}.jar"/>
|
||||
<include name="**/${jai_imageio.jar.name}.jar"/>
|
||||
</fileset>
|
||||
<pathelement path="${jPodRenderer.build.dir}"/>
|
||||
</path>
|
||||
|
||||
<!-- Compile the java code -->
|
||||
<javac compiler="javac1.4" target="1.4" source="1.4" srcdir="${jPodRenderer.src.dir}" destdir="${jPodRenderer.build.dir}" debug="true">
|
||||
<classpath refid="jPodRenderer.classpath"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="build-jars" depends="compile" description="generate the distribution" >
|
||||
|
||||
<jar jarfile="${jPodRenderer.dist.dir}/${jPodRenderer.jar.name}.jar" basedir="${jPodRenderer.build.dir}">
|
||||
<manifest>
|
||||
<attribute name="Built-By" value="${user.name}"/>
|
||||
<attribute name="Main-Class" value=""/>
|
||||
<attribute name="Class-Path" value="${isrt.jar.name}.jar ${isnative.jar.name}.jar ${isfreetype.jar.name}.jar
|
||||
${iscwt.jar.name}.jar ${jPod.jar.name}.jar ${jbig2.jar.name}.jar ${jna.jar.name}.jar ${swt.jar.name}.jar
|
||||
${jai_codec.jar.name}.jar ${jai_core.jar.name}.jar ${jai_imageio.jar.name}.jar"/>
|
||||
</manifest>
|
||||
<fileset dir="${jPodRenderer.resource.dir}">
|
||||
<include name="**/*"/>
|
||||
</fileset>
|
||||
</jar>
|
||||
|
||||
</target>
|
||||
|
||||
<!-- Javadoc -->
|
||||
<target name="javadoc" depends="make-structure">
|
||||
<javadoc
|
||||
packagenames="de.intarsys.pdf.platform.*"
|
||||
sourcepath="${jPodRenderer.src.dir}"
|
||||
destdir="${jPodRenderer.javadoc.dir}"
|
||||
author="true"
|
||||
version="true"
|
||||
use="true"
|
||||
windowtitle="jPodRenderer API"
|
||||
doctitle="jPodRenderer API" >
|
||||
<classpath refid="jPodRenderer.classpath"/>
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
|
||||
|
||||
<target name="buildZipSrcPackage" depends="javadoc" description="generate build sources zip package" >
|
||||
<zip destfile="${jPodRenderer.dist.dir}/${jPodRenderer.jar.name}-build-src.zip">
|
||||
<fileset dir="..">
|
||||
<include name="jPodRenderer/src/**/*"/>
|
||||
</fileset>
|
||||
<fileset dir="${build.dir}">
|
||||
<include name="jPodRenderer/javadoc/**/*.*"/>
|
||||
</fileset>
|
||||
<fileset dir="..">
|
||||
<include name="jPodRenderer/ant/**/*.*"/>
|
||||
</fileset>
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
83
dev-java/jPodRenderer/jPodRenderer-5.0.20081218.ebuild
Normal file
83
dev-java/jPodRenderer/jPodRenderer-5.0.20081218.ebuild
Normal file
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="This is the jPod based PDF platform & rendering library."
|
||||
HOMEPAGE="http://jpwgen.berlios.de/"
|
||||
SRC_URI="mirror://sourceforge/jpodrenderer/jPodRenderer.${PV}.zip"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
COMMON_DEP="dev-java/sun-jai-imageio
|
||||
dev-java/sun-jai-bin
|
||||
dev-java/jbig2
|
||||
dev-java/jna
|
||||
dev-java/swt:3.4
|
||||
dev-java/isrt
|
||||
dev-java/isnativec
|
||||
dev-java/isfreetype
|
||||
dev-java/iscwt
|
||||
dev-java/jPod"
|
||||
RDEPEND=">=virtual/jre-1.5
|
||||
${COMMON_DEP}"
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
${COMMON_DEP}
|
||||
app-arch/unzip"
|
||||
|
||||
S="${WORKDIR}"/distribution
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
cd "${S}"
|
||||
mkdir ant
|
||||
cp "${FILESDIR}/build.xml" "${S}"/ant
|
||||
|
||||
echo > ${S}/ant/build.properties
|
||||
echo "build.dir=${S}/build" >> ${S}/ant/build.properties
|
||||
echo "libs.dir=${S}" >> ${S}/ant/build.properties
|
||||
echo "jai_codec.jar.name=jai_codec" >> ${S}/ant/build.properties
|
||||
echo "jai_core.jar.name=jai_core" >> ${S}/ant/build.properties
|
||||
echo "jai_imageio.jar.name=jai_imageio" >> ${S}/ant/build.properties
|
||||
echo "jbig2.jar.name=jbig2" >> ${S}/ant/build.properties
|
||||
echo "jna.jar.name=jna" >> ${S}/ant/build.properties
|
||||
echo "swt.jar.name=swt" >> ${S}/ant/build.properties
|
||||
echo "isrt.jar.name=isrt" >> ${S}/ant/build.properties
|
||||
echo "isnativec.jar.name=isnativec" >> ${S}/ant/build.properties
|
||||
echo "isfreetype.jar.name=isfreetype" >> ${S}/ant/build.properties
|
||||
echo "iscwt.jar.name=iscwt" >> ${S}/ant/build.properties
|
||||
echo "jPod.jar.name=jPod" >> ${S}/ant/build.properties
|
||||
echo "jPodRenderer.jar.name=jPodRenderer" >> ${S}/ant/build.properties
|
||||
|
||||
java-pkg_jarfrom sun-jai-imageio
|
||||
java-pkg_jarfrom sun-jai-bin
|
||||
java-pkg_jarfrom jbig2
|
||||
java-pkg_jarfrom jna
|
||||
java-pkg_jarfrom swt-3.4
|
||||
java-pkg_jarfrom isrt
|
||||
java-pkg_jarfrom isnativec
|
||||
java-pkg_jarfrom isfreetype
|
||||
java-pkg_jarfrom iscwt
|
||||
java-pkg_jarfrom jPod
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant ${antflags} -buildfile ant/build.xml || die "build failed"
|
||||
|
||||
use doc && eant ${antflags} -buildfile ant/build.xml javadoc || die "doc build failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar build/jPodRenderer/dist/jPodRenderer.jar
|
||||
|
||||
use source && java-pkg_dosrc src/*
|
||||
|
||||
use doc && java-pkg_dojavadoc build/jPodRenderer/javadoc
|
||||
}
|
5
dev-java/jPodRenderer/metadata.xml
Normal file
5
dev-java/jPodRenderer/metadata.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>java</herd>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user