Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

20
lang/clojure/DESCR Normal file
View File

@@ -0,0 +1,20 @@
Clojure is a dynamic programming language that targets the Java
Virtual Machine (and the CLR, and JavaScript). It is designed to
be a general-purpose language, combining the approachability and
interactive development of a scripting language with an efficient
and robust infrastructure for multithreaded programming. Clojure
is a compiled language - it compiles directly to JVM bytecode, yet
remains completely dynamic. Every feature supported by Clojure is
supported at runtime. Clojure provides easy access to the Java
frameworks, with optional type hints and type inference, to ensure
that calls to Java can avoid reflection.
Clojure is a dialect of Lisp, and shares with Lisp the code-as-data
philosophy and a powerful macro system. Clojure is predominantly
a functional programming language, and features a rich set of
immutable, persistent data structures. When mutable state is needed,
Clojure offers a software transactional memory system and reactive
Agent system that ensure clean, correct, multithreaded designs.
I hope you find Clojure's combination of facilities elegant,
powerful, practical and fun to use.

6
lang/clojure/MESSAGE Normal file
View File

@@ -0,0 +1,6 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2012/05/04 11:51:30 ryoon Exp $
To enable additional modules, you should create .clojure file
in your working directory, not in home directory.
===========================================================================

56
lang/clojure/Makefile Normal file
View File

@@ -0,0 +1,56 @@
# $NetBSD: Makefile,v 1.3 2013/06/11 19:51:27 asau Exp $
DISTNAME= clojure-1.5.1
CATEGORIES= lang
MASTER_SITES= http://repo1.maven.org/maven2/org/clojure/clojure/$(PKGVERSION_NOREV)/
EXTRACT_SUFX= .zip
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://clojure.org/
COMMENT= Dynamic programming language that targets the Java VM
LICENSE= epl-v1.0
NO_BUILD= yes
USE_JAVA= run
USE_JAVA2= 1.5
USE_LANGUAGES= # none
USE_TOOLS+= pax
INSTALLATION_DIRS= bin \
share/doc/${PKGNAME_NOREV} \
lib/java/clojure \
share/examples/${PKGNAME_NOREV}
CLOJURE_DOCS= changes.md epl-v10.html readme.txt \
doc/clojure/pprint/CommonLispFormat.markdown \
doc/clojure/pprint/PrettyPrinting.markdown
SUBST_CLASSES+= java
SUBST_STAGE.java= pre-install
SUBST_MESSAGE.java= Set Java
SUBST_FILES.java= clj.sh
SUBST_SED.java= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g'
SUBST_SED.java+= -e 's,@SH@,${SH},'
pre-patch:
${INSTALL_DATA} ${FILESDIR}/clj.sh ${WRKSRC}
do-install:
${INSTALL_DATA} ${WRKSRC}/${PKGNAME_NOREV}.jar \
${DESTDIR}${PREFIX}/lib/java/clojure/clojure.jar
cd ${WRKSRC}/test/clojure && pax -rw -pmp test_clojure \
${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}/
${INSTALL_DATA} ${WRKSRC}/test/clojure/test_helper.clj \
${DESTDIR}${PREFIX}/share/examples/${PKGNAME_NOREV}
.for f in ${CLOJURE_DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} \
${DESTDIR}${PREFIX}/share/doc/${PKGNAME_NOREV}
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/clj.sh ${DESTDIR}${PREFIX}/bin/clj
.include "../../mk/java-env.mk"
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"

72
lang/clojure/PLIST Normal file
View File

@@ -0,0 +1,72 @@
@comment $NetBSD: PLIST,v 1.2 2013/06/11 19:51:27 asau Exp $
bin/clj
lib/java/clojure/clojure.jar
share/doc/${PKGNAME}/CommonLispFormat.markdown
share/doc/${PKGNAME}/PrettyPrinting.markdown
share/doc/${PKGNAME}/changes.md
share/doc/${PKGNAME}/epl-v10.html
share/doc/${PKGNAME}/readme.txt
share/examples/${PKGNAME}/test_clojure/agents.clj
share/examples/${PKGNAME}/test_clojure/annotations.clj
share/examples/${PKGNAME}/test_clojure/annotations/java_5.clj
share/examples/${PKGNAME}/test_clojure/annotations/java_6.clj
share/examples/${PKGNAME}/test_clojure/atoms.clj
share/examples/${PKGNAME}/test_clojure/clojure_set.clj
share/examples/${PKGNAME}/test_clojure/clojure_walk.clj
share/examples/${PKGNAME}/test_clojure/clojure_xml.clj
share/examples/${PKGNAME}/test_clojure/clojure_zip.clj
share/examples/${PKGNAME}/test_clojure/compilation.clj
share/examples/${PKGNAME}/test_clojure/control.clj
share/examples/${PKGNAME}/test_clojure/data.clj
share/examples/${PKGNAME}/test_clojure/data_structures.clj
share/examples/${PKGNAME}/test_clojure/def.clj
share/examples/${PKGNAME}/test_clojure/edn.clj
share/examples/${PKGNAME}/test_clojure/errors.clj
share/examples/${PKGNAME}/test_clojure/evaluation.clj
share/examples/${PKGNAME}/test_clojure/fn.clj
share/examples/${PKGNAME}/test_clojure/for.clj
share/examples/${PKGNAME}/test_clojure/genclass.clj
share/examples/${PKGNAME}/test_clojure/genclass/examples.clj
share/examples/${PKGNAME}/test_clojure/generators.clj
share/examples/${PKGNAME}/test_clojure/java/io.clj
share/examples/${PKGNAME}/test_clojure/java/javadoc.clj
share/examples/${PKGNAME}/test_clojure/java/shell.clj
share/examples/${PKGNAME}/test_clojure/java_interop.clj
share/examples/${PKGNAME}/test_clojure/keywords.clj
share/examples/${PKGNAME}/test_clojure/logic.clj
share/examples/${PKGNAME}/test_clojure/macros.clj
share/examples/${PKGNAME}/test_clojure/main.clj
share/examples/${PKGNAME}/test_clojure/metadata.clj
share/examples/${PKGNAME}/test_clojure/multimethods.clj
share/examples/${PKGNAME}/test_clojure/ns_libs.clj
share/examples/${PKGNAME}/test_clojure/numbers.clj
share/examples/${PKGNAME}/test_clojure/other_functions.clj
share/examples/${PKGNAME}/test_clojure/parallel.clj
share/examples/${PKGNAME}/test_clojure/pprint.clj
share/examples/${PKGNAME}/test_clojure/pprint/test_cl_format.clj
share/examples/${PKGNAME}/test_clojure/pprint/test_helper.clj
share/examples/${PKGNAME}/test_clojure/pprint/test_pretty.clj
share/examples/${PKGNAME}/test_clojure/predicates.clj
share/examples/${PKGNAME}/test_clojure/printer.clj
share/examples/${PKGNAME}/test_clojure/protocols.clj
share/examples/${PKGNAME}/test_clojure/protocols/examples.clj
share/examples/${PKGNAME}/test_clojure/protocols/hash_collisions.clj
share/examples/${PKGNAME}/test_clojure/protocols/more_examples.clj
share/examples/${PKGNAME}/test_clojure/reader.clj
share/examples/${PKGNAME}/test_clojure/reducers.clj
share/examples/${PKGNAME}/test_clojure/reflect.clj
share/examples/${PKGNAME}/test_clojure/refs.clj
share/examples/${PKGNAME}/test_clojure/repl.clj
share/examples/${PKGNAME}/test_clojure/repl/example.clj
share/examples/${PKGNAME}/test_clojure/rt.clj
share/examples/${PKGNAME}/test_clojure/sequences.clj
share/examples/${PKGNAME}/test_clojure/serialization.clj
share/examples/${PKGNAME}/test_clojure/special.clj
share/examples/${PKGNAME}/test_clojure/string.clj
share/examples/${PKGNAME}/test_clojure/test.clj
share/examples/${PKGNAME}/test_clojure/test_fixtures.clj
share/examples/${PKGNAME}/test_clojure/transients.clj
share/examples/${PKGNAME}/test_clojure/try_catch.clj
share/examples/${PKGNAME}/test_clojure/vars.clj
share/examples/${PKGNAME}/test_clojure/vectors.clj
share/examples/${PKGNAME}/test_helper.clj

5
lang/clojure/distinfo Normal file
View File

@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.2 2013/06/11 19:51:27 asau Exp $
SHA1 (clojure-1.5.1.zip) = 90d09dff6e6ded4382d06ff3b3ab03be471fcab2
RMD160 (clojure-1.5.1.zip) = 445d57d54fef88127c9437e7017f18786c0c1411
Size (clojure-1.5.1.zip) = 4783378 bytes

36
lang/clojure/files/clj.sh Normal file
View File

@@ -0,0 +1,36 @@
#!@SH@
# clj - Clojure launcher script
# Borrowed from https://trac.macports.org/changeset/69628
cljjar='lib/java/clojure/clojure.jar'
cljclass='clojure.main'
dir=$0
while [ -h "$dir" ]; do
ls=`ls -ld "$dir"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
dir="$link"
else
dir=`dirname "$dir"`"/$link"
fi
done
dir=`dirname $dir`
dir=`cd "$dir" > /dev/null && pwd`
cljjar="$dir/../$cljjar"
cp="${PWD}:${cljjar}"
# Add extra jars as specified by `.clojure` file
# Borrowed from <http://github.com/mreid/clojure-framework>
if [ -f .clojure ]; then
cp=$cp:`cat .clojure`
fi
if [ -z "$1" ]; then
exec @JAVA_HOME@/bin/java -classpath $cp $cljclass
else
exec @JAVA_HOME@/bin/java -classpath $cp $cljclass $*
fi