diff options
author | Jason Helfman <jgh@FreeBSD.org> | 2012-07-13 17:38:23 +0000 |
---|---|---|
committer | Jason Helfman <jgh@FreeBSD.org> | 2012-07-13 17:38:23 +0000 |
commit | cd57934a7090fba69f8cd78e4c37fefbc3322430 (patch) | |
tree | c2d5f6899e671e017d21d91fac327138d9ebf553 | |
parent | 2f1621bf87d150a1f02da802d9ab707e25964b6e (diff) | |
download | ports-cd57934a7090fba69f8cd78e4c37fefbc3322430.tar.gz ports-cd57934a7090fba69f8cd78e4c37fefbc3322430.zip |
Notes
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/geoip-java/Makefile | 51 | ||||
-rw-r--r-- | devel/geoip-java/distinfo | 2 | ||||
-rw-r--r-- | devel/geoip-java/files/build.xml | 56 | ||||
-rw-r--r-- | devel/geoip-java/pkg-descr | 7 |
5 files changed, 117 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 9e34b27d6f63..ceece36fc084 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -477,6 +477,7 @@ SUBDIR += generatorrunner SUBDIR += gengetopt SUBDIR += genproto + SUBDIR += geoip-java SUBDIR += gettext SUBDIR += gettext-lint SUBDIR += gettext-msghack diff --git a/devel/geoip-java/Makefile b/devel/geoip-java/Makefile new file mode 100644 index 000000000000..96bdd166f4e2 --- /dev/null +++ b/devel/geoip-java/Makefile @@ -0,0 +1,51 @@ +# New ports collection makefile for: geoip-java +# Date created: 2012-07-12 +# Whom: Jason Helfman <jgh@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= geoip +PORTVERSION= 1.2.8 +CATEGORIES= devel java +MASTER_SITES= http://www.maxmind.com/download/geoip/api/java/ +DISTNAME= GeoIPJava-${PORTVERSION} + +MAINTAINER= jgh@FreeBSD.org +COMMENT= Java bindings for GeoIP API + +LICENSE= LGPL21 + +RUN_DEPENDS= GeoIP>=1.4.8:${PORTSDIR}/net/GeoIP + +PKGNAMESUFFIX:= -java +USE_ZIP= YES + +USE_JAVA= YES +JAVA_VERSION= 1.5+ +USE_ANT= YES +ALL_TARGET= jar + +PLIST_FILES= %%JAVAJARDIR%%/maxmind-geoip-${PORTVERSION}.jar +PORTDOCS= * +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} + +.include <bsd.port.options.mk> + +pre-build: + @${CP} ${FILESDIR}/build.xml ${WRKSRC} + +post-build-script: +.if ${PORT_OPTIONS:MDOCS} + cd ${WRKSRC} && \ + ${ANT} javadoc +.endif + +do-install: + ${INSTALL_DATA} ${WRKSRC}/maxmind-geoip.jar ${JAVAJARDIR}/maxmind-geoip-${PORTVERSION}.jar +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC}/javadoc && ${COPYTREE_SHARE} \* ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/devel/geoip-java/distinfo b/devel/geoip-java/distinfo new file mode 100644 index 000000000000..ebc4077e791d --- /dev/null +++ b/devel/geoip-java/distinfo @@ -0,0 +1,2 @@ +SHA256 (GeoIPJava-1.2.8.zip) = 7fc252e3fe4615f1451abbaae37af3608c322c817de56409278f717c8a8cef28 +SIZE (GeoIPJava-1.2.8.zip) = 80281 diff --git a/devel/geoip-java/files/build.xml b/devel/geoip-java/files/build.xml new file mode 100644 index 000000000000..249f3baefc2e --- /dev/null +++ b/devel/geoip-java/files/build.xml @@ -0,0 +1,56 @@ +<!-- Found at http://www.benow.ca/misc/geoip/build.xml authored by benow --> + +<project name="maxmind-geoip" default="compile" basedir="."> + + <property name="app.name" value="maxmind-geoip" /> + <property name="app.version" value="1.0" /> + <property name="build.home" value="build" /> + <property name="src.home" value="source" /> + <property name="doc.home" value="javadoc" /> + + + <path id="compile.classpath"> + <pathelement path="${build.home}" /> + </path> + + <target name="all" depends="clean,jar,javadoc" description="Clean build and jar, with javadoc" /> + + <target name="clean" description="Delete old build directories"> + <delete dir="${build.home}" quiet="yes" /> + <delete dir="${doc.home}" quiet="yes" /> + <delete quiet="yes"> + <fileset dir="." includes="**/*~*" defaultexcludes="no" /> + </delete> + + <!-- + <delete dir="${dist.home}"/> +--> + + </target> + + <target name="compile" description="Compile Java sources"> + <mkdir dir="${build.home}" /> + <javac srcdir="${src.home}" destdir="${build.home}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> + <classpath refid="compile.classpath" /> + </javac> + </target> + + <target name="jar" depends="clean,compile" description="Create binary distribution"> + <mkdir dir="${build.home}" /> + + <!-- Create application JAR file --> + <jar jarfile="${app.name}.jar" basedir="${build.home}"/> + </target> + + <target name="javadoc" depends="compile" description="Create Javadoc API documentation"> + + <delete dir="${doc.home}" /> + <mkdir dir="${doc.home}" /> + <javadoc sourcepath="${src.home}" destdir="${doc.home}" windowtitle="${app.name} Documentation" doctitle="${app.name} Documentation" packagenames="com.*,test.*,org.*"> + <classpath refid="compile.classpath" /> + </javadoc> + </target> + +</project> + + diff --git a/devel/geoip-java/pkg-descr b/devel/geoip-java/pkg-descr new file mode 100644 index 000000000000..7bb7674387ac --- /dev/null +++ b/devel/geoip-java/pkg-descr @@ -0,0 +1,7 @@ +MaxMind provides IP intelligence through the GeoIP brand. Over 5,000 companies +use GeoIP data to locate their Internet visitors and show them relevant content +and ads, perform analytics, enforce digital rights, and efficiently route +Internet traffic. Businesses can obtain additional insights into their +customers' connection speeds, ISPs, and more using GeoIP data. + +WWW: http://www.maxmind.com/app/java |