summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-12 21:06:09 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-12 21:06:09 -0400
commit8c3608efb3feb10a1b1d32b9df3efa768d6f467f (patch)
treecf956783c269fb9599c4926ac99dffed8d7236e8
parente1095b1afad2ab585326a85bf0ed58137878f6f4 (diff)
add asm{1..3}
-rw-r--r--Makefile7
-rw-r--r--conf/dependencies.mk13
-rw-r--r--conf/sources.mk6
-rw-r--r--rules/asm1/Makefile49
-rw-r--r--rules/asm2/Makefile50
l---------rules/asm31
l---------rules/ow-util-ant-tasks-bootstrap/Makefile1
-rw-r--r--rules/ow-util-ant-tasks-bootstrap/delete.list3
-rw-r--r--rules/ow-util-ant-tasks/Makefile26
-rw-r--r--rules/ow-util-ant-tasks/delete.list2
10 files changed, 154 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2fa7746..d009939 100644
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,13 @@ $(foreach package,$(packages),$(if $(filter-out svn|%,$($(package))),$(eval \
build/download/$(shell utils/file2base "$$(utils/spec2file '$($(package))')") \
)))
+build/extract/tar/http^3A^2F^2Fdownload.forge.objectweb.org^2Fmonolog^2Fow_util_ant_tasks_1.3.2.zip: build/extract/tar/%: build/download/tar/%
+ $(RM) -r '$@' && \
+ { \
+ $(MKDIRS) '$@' && \
+ ( cd '$@' && $(TAR) -m -xf '$(top)/$<' ); \
+ } || { $(RM) -r '$@'; $(FAIL); }
+
# place (patch) ################################################################
place: PHONY $(addprefix build/workdir/,$(packages))
diff --git a/conf/dependencies.mk b/conf/dependencies.mk
index 6029b8d..9ad5a74 100644
--- a/conf/dependencies.mk
+++ b/conf/dependencies.mk
@@ -62,7 +62,7 @@ build/packages/maven-plugin-tools-api-bootstrap: \
build/packages/plexus-container-default \
build/packages/plexus-utils
build/packages/xbean-reflect-bootstrap: \
- /usr/share/java/asm-all-2.jar \
+ build/packages/asm2 \
/usr/share/java/commons-logging/commons-logging.jar
build/packages/plexus-build-api: \
@@ -80,16 +80,16 @@ build/packages/plexus-interactivity: \
build/packages/plexus-utils
build/packages/plexus-component-metadata-bootstrap: \
+ build/packages/asm3 \
build/packages/commons-cli \
build/packages/jdom1 \
- build/packages/qdox \
build/packages/maven-plugin-api-bootstrap \
build/packages/plexus-classworlds \
build/packages/plexus-cli \
- build/packages/plexus-container-default \
build/packages/plexus-component-annotations \
+ build/packages/plexus-container-default \
build/packages/plexus-utils \
- /usr/share/java/asm-all-3.jar
+ build/packages/qdox
# FIXME: Does not include generated code? But signatures match?
build/packages/plexus-container-default: \
build/packages/guava \
@@ -123,6 +123,11 @@ build/packages/wagon: \
/usr/share/java/commons-io/commons-io.jar \
/usr/share/java/junit.jar
+build/packages/ow-util-ant-tasks: build/packages/asm2
+build/packages/asm1: build/packages/ow-util-ant-tasks
+build/packages/asm2: build/packages/ow-util-ant-tasks-bootstrap
+build/packages/asm3: build/packages/ow-util-ant-tasks
+
build/packages/httpcomponents-core: \
build/packages/commons-cli
build/packages/httpcomponents-client-bootstrap: \
diff --git a/conf/sources.mk b/conf/sources.mk
index 0b7af72..536123c 100644
--- a/conf/sources.mk
+++ b/conf/sources.mk
@@ -37,6 +37,12 @@ qdox = tar|http://nexus.codehaus.org/con
slf4j-api = tar|http://www.slf4j.org/dist/slf4j-1.7.7.tar.gz|slf4j-api
wagon = tar|$(_apache_mirror)/maven/wagon/wagon-2.6-source-release.zip
+asm1 = tar|http://download.forge.objectweb.org/asm/asm-1.5.3.tar.gz
+asm2 = tar|http://download.forge.objectweb.org/asm/asm-2.2.3.tar.gz
+asm3 = tar|http://download.forge.objectweb.org/asm/asm-3.3.1.tar.gz
+ow-util-ant-tasks = tar|http://download.forge.objectweb.org/monolog/ow_util_ant_tasks_1.3.2.zip
+ow-util-ant-tasks-bootstrap = $(ow-util-ant-tasks)
+
commons-cli = tar|$(_apache_mirror)/commons/cli/source/commons-cli-1.2-src.tar.gz
commons-codec = tar|$(_apache_mirror)/commons/codec/source/commons-codec-1.9-src.tar.gz
commons-lang2 = tar|$(_apache_mirror)/commons/lang/source/commons-lang-2.6-src.tar.gz
diff --git a/rules/asm1/Makefile b/rules/asm1/Makefile
new file mode 100644
index 0000000..32894c1
--- /dev/null
+++ b/rules/asm1/Makefile
@@ -0,0 +1,49 @@
+DESTDIR ?=
+MAVEN_LOCAL_REPO ?= ~/.m2
+
+ANT = ant
+EXISTS = test -e
+FAIL = exit 1
+FIND = find
+INSTALL = install
+MKDIRS = mkdir -p
+RM = rm -f
+SED = sed
+TOUCH = touch
+
+artifactIds := $(patsubst archive/%.mf,%,$(wildcard archive/*.mf))
+version := $(shell $(SED) -n 's/^product\.version\s\s*//p' build.properties)
+groupId := asm
+
+findjar = $(firstword $(foreach path,$(subst :, ,$(CLASSPATH)),$(if $(findstring $1,$(path)),$(path))) /notfound.jar)
+ow_util_ant_tasks_jar = $(call findjar,ow_util_ant_tasks)
+
+all: PHONY output
+
+output: $(shell $(FIND) src) | test/lib
+ $(SED) -i -e '/^objectweb.ant.tasks.path/d' -e '$$aobjectweb.ant.tasks.path $(ow_util_ant_tasks_jar)' build.properties && \
+ $(ANT) dist || \
+ { $(RM) -r $@; $(FAIL); }
+ $(TOUCH) $@
+
+test/lib:
+ $(MKDIRS) $@
+
+install-base = $(DESTDIR)$(MAVEN_LOCAL_REPO)/$(subst .,/,$(groupId))/$(artifactId)/$(version)/$(artifactId)-$(version)
+install-jars = $(foreach artifactId,$(artifactIds),$(install-base).jar)
+install-poms = $(foreach artifactId,$(artifactIds),$(install-base).pom)
+install-targets = $(install-jars) $(install-poms)
+install: PHONY $(install-targets)
+
+$(foreach target,$(install-jars),$(eval $(target): output/dist/lib/$(notdir $(target)) ; $$(INSTALL) -Dm644 $$< $$@))
+$(foreach target,$(install-poms),$(eval $(target): output/dist/lib/$(patsubst %.pom,%.xml,$(notdir $(target))) ; $$(INSTALL) -Dm644 $$< $$@))
+$(addprefix output/dist/lib/,$(patsubst %.pom,%.xml,$(notdir $(install-targets)))): output
+ $(EXISTS) $@
+ $(TOUCH) $@
+
+
+clean: PHONY
+ $(RM) -r output
+
+.PHONY: PHONY
+.DELETE_ON_ERROR:
diff --git a/rules/asm2/Makefile b/rules/asm2/Makefile
new file mode 100644
index 0000000..156651e
--- /dev/null
+++ b/rules/asm2/Makefile
@@ -0,0 +1,50 @@
+DESTDIR ?=
+MAVEN_LOCAL_REPO ?= ~/.m2
+
+ANT = ant
+EXISTS = test -e
+FAIL = exit 1
+FIND = find
+INSTALL = install
+MKDIRS = mkdir -p
+RM = rm -f
+SED = sed
+SYMLINK = ln -sf
+TOUCH = touch
+
+artifactIds := $(patsubst archive/%.xml,%,$(wildcard archive/asm*.xml))
+version := $(shell $(SED) -n 's/^product\.version\s\s*//p' build.properties)
+groupId := asm
+
+findjar = $(firstword $(foreach path,$(subst :, ,$(CLASSPATH)),$(if $(findstring $1,$(path)),$(path))) /notfound.jar)
+ow_util_ant_tasks_jar = $(call findjar,ow_util_ant_tasks)
+
+all: PHONY output
+
+output: $(shell $(FIND) src) | test/lib
+ $(SED) -i -e '/^objectweb.ant.tasks.path/d' -e '$$aobjectweb.ant.tasks.path $(ow_util_ant_tasks_jar)' build.properties && \
+ $(ANT) dist && \
+ ( cd output/dist/lib && $(SYMLINK) all/* . ) || \
+ { $(RM) -r $@; $(FAIL); }
+ $(TOUCH) $@
+
+test/lib:
+ $(MKDIRS) $@
+
+install-base = $(DESTDIR)$(MAVEN_LOCAL_REPO)/$(subst .,/,$(groupId))/$(artifactId)/$(version)/$(artifactId)-$(version)
+install-jars = $(foreach artifactId,$(filter-out %-parent,$(artifactIds)),$(install-base).jar)
+install-poms = $(foreach artifactId, $(artifactIds) ,$(install-base).pom)
+install-targets = $(install-jars) $(install-poms)
+install: PHONY $(install-targets)
+
+$(foreach target,$(install-targets),$(eval $(target): output/dist/lib/$(notdir $(target)) ; $$(INSTALL) -Dm644 $$< $$@))
+$(addprefix output/dist/lib/,$(notdir $(install-targets))): output
+ $(EXISTS) $@
+ $(TOUCH) $@
+
+
+clean: PHONY
+ $(RM) -r output
+
+.PHONY: PHONY
+.DELETE_ON_ERROR:
diff --git a/rules/asm3 b/rules/asm3
new file mode 120000
index 0000000..d22cd68
--- /dev/null
+++ b/rules/asm3
@@ -0,0 +1 @@
+asm2 \ No newline at end of file
diff --git a/rules/ow-util-ant-tasks-bootstrap/Makefile b/rules/ow-util-ant-tasks-bootstrap/Makefile
new file mode 120000
index 0000000..8901f8e
--- /dev/null
+++ b/rules/ow-util-ant-tasks-bootstrap/Makefile
@@ -0,0 +1 @@
+../ow-util-ant-tasks/Makefile \ No newline at end of file
diff --git a/rules/ow-util-ant-tasks-bootstrap/delete.list b/rules/ow-util-ant-tasks-bootstrap/delete.list
new file mode 100644
index 0000000..5c63872
--- /dev/null
+++ b/rules/ow-util-ant-tasks-bootstrap/delete.list
@@ -0,0 +1,3 @@
+externals/*.jar
+output
+src/org/objectweb/util/ant/DependencyAnalyzer.java
diff --git a/rules/ow-util-ant-tasks/Makefile b/rules/ow-util-ant-tasks/Makefile
new file mode 100644
index 0000000..a93261b
--- /dev/null
+++ b/rules/ow-util-ant-tasks/Makefile
@@ -0,0 +1,26 @@
+DESTDIR ?=
+JAR_DIR ?= /usr/share/java
+
+ANT = ant
+EXISTS = test -e
+FAIL = exit 1
+FIND = find
+INSTALL = install
+RM = rm -f
+TOUCH = touch
+
+all: PHONY output/lib/ow_util_ant_tasks.jar
+
+output/lib/ow_util_ant_tasks.jar: $(shell $(FIND) src)
+ $(ANT) jar && $(EXISTS) $@ || { $(RM) -r output; $(FAIL); }
+
+install: PHONY $(DESTDIR)$(JAR_DIR)/ow_util_ant_tasks.jar
+
+$(DESTDIR)$(JAR_DIR)/ow_util_ant_tasks.jar: output/lib/ow_util_ant_tasks.jar
+ $(INSTALL) -Dm644 $< $@
+
+clean: PHONY
+ $(RM) -r output
+
+.PHONY: PHONY
+.DELETE_ON_ERROR:
diff --git a/rules/ow-util-ant-tasks/delete.list b/rules/ow-util-ant-tasks/delete.list
new file mode 100644
index 0000000..c8a023f
--- /dev/null
+++ b/rules/ow-util-ant-tasks/delete.list
@@ -0,0 +1,2 @@
+externals/*.jar
+output