Files
Lawrence Velázquez 34b3070336 Remove all $Id$ lines
for pf in */*/Portfile
do
    ed -s "$pf" <<-'EOF'
	1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
	1g/^[[:space:]]*$/d
	w
	q
	EOF
done
2016-12-28 18:14:04 +01:00

66 lines
1.7 KiB
Plaintext

PortSystem 1.0
PortGroup github 1.0
github.setup gwhalin Memcached-Java-Client 2.0.1 release_
name java_memcached
categories java
platforms darwin
maintainers nomaintainer
license BSD
supported_archs noarch
description A high performance, distributed object caching system.
long_description Memcached is a high-performance, distributed \
memory object caching system, generic in nature, \
but intended for use in speeding up dynamic web \
applications by alleviating database load. This \
Port provides a native Java client.
homepage http://www.whalin.com/memcached/
depends_lib bin:java:kaffe \
port:jakarta-log4j
depends_build bin:ant:apache-ant
fetch.type git
use_configure no
build.cmd ant
build.args -Dver=${version} -Dlog4j=1
build {
system "echo Running: ${build.cmd} ${build.args} jar"
system "cd ${worksrcpath} && ${build.cmd} ${build.args} jar"
file copy ${worksrcpath}/java_memcached-${version}/java_memcached-${version}.jar ${worksrcpath}/${name}.jar
system "echo Running: ${build.cmd} ${build.args} javadoc"
system "cd ${worksrcpath} && ${build.cmd} ${build.args} javadoc"
file rename ${worksrcpath}/java_memcached-${version}/javadocs ${worksrcpath}/javadocs
}
destroot {
set javadir ${destroot}${prefix}/share/java
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d -m 755 ${javadir}
xinstall -d -m 755 ${docdir}
file copy ${worksrcpath}/${name}.jar ${javadir}/
file copy ${worksrcpath}/javadocs ${docdir}/
xinstall -m 644 -W ${worksrcpath}/doc \
CHANGELOG.txt \
HOWTO.txt \
LICENSE.txt \
PORTABILITY.txt \
README.txt \
TODO.txt \
${docdir}
}
variant built_in_logger {
depends_lib-delete port:jakarta-log4j
build.args-delete -Dlog4j=1
}