[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
178/376: Support specifying a JAR manifest
From: |
Ludovic Courtès |
Subject: |
178/376: Support specifying a JAR manifest |
Date: |
Wed, 28 Jan 2015 22:04:52 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit 9648222ef0ad7cd4478d61c3ffd6fe9926a859df
Author: Eelco Dolstra <address@hidden>
Date: Thu Sep 11 15:47:31 2014 +0200
Support specifying a JAR manifest
---
jars.mk | 2 +-
lib.mk | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/jars.mk b/jars.mk
index 186a81d..abe3f9f 100644
--- a/jars.mk
+++ b/jars.mk
@@ -16,7 +16,7 @@ define build-jar
$$(trace-javac) javac $(GLOBAL_JAVACFLAGS) $$($(1)_JAVACFLAGS) -d
$$($(1)_TMPDIR) \
$$(foreach fn, $$($(1)_SOURCES), '$$(fn)') \
-cp "$$(subst $$(space),,$$(foreach
jar,$$($(1)_JARS),$$($$(jar)_PATH):))$$$$CLASSPATH"
- $$(trace-jar) jar cf $$($(1)_PATH) -C $$($(1)_TMPDIR) .
+ $$(trace-jar) jar cfm $$($(1)_PATH) <(echo -e '$$(subst
$$(newline),\n,$$($(1)_MANIFEST))') -C $$($(1)_TMPDIR) .
@rm -rf $$($(1)_TMPDIR)
$(1)_INSTALL_DIR ?= $$(libdir)/java
diff --git a/lib.mk b/lib.mk
index 16a43f4..31308de 100644
--- a/lib.mk
+++ b/lib.mk
@@ -14,11 +14,22 @@ dist-files :=
OS = $(shell uname -s)
+# Use bash (required for process substitution in the JAR function).
+SHELL = bash
+
+
# Hack to define a literal space.
space :=
space +=
+# Hack to define a literal newline.
+define newline
+
+
+endef
+
+
# Default installation paths.
prefix ?= /usr/local
libdir ?= $(prefix)/lib
- 153/376: Fix a segfault in ‘nix-env -qa’, (continued)
- 153/376: Fix a segfault in ‘nix-env -qa’, Ludovic Courtès, 2015/01/28
- 164/376: allowedRequisites: Drop stdenv mention, Ludovic Courtès, 2015/01/28
- 160/376: Fix building with Clang, Ludovic Courtès, 2015/01/28
- 170/376: Fix dependency ordering, Ludovic Courtès, 2015/01/28
- 169/376: Hack for supporting Boost on Homebrew, Ludovic Courtès, 2015/01/28
- 166/376: Shut up "Wide character" warnings in Perl scripts, Ludovic Courtès, 2015/01/28
- 167/376: Add an 'optimiseStore' remote procedure call., Ludovic Courtès, 2015/01/28
- 171/376: Fix build-remote.pl, Ludovic Courtès, 2015/01/28
- 172/376: tests/remote-builds.nix: Time out faster, Ludovic Courtès, 2015/01/28
- 176/376: Add support for using a build directory, Ludovic Courtès, 2015/01/28
- 178/376: Support specifying a JAR manifest,
Ludovic Courtès <=
- 181/376: Add some hyperlinks between NIXPATH and -I, Ludovic Courtès, 2015/01/28
- 165/376: Add disallowedReferences / disallowedRequisites, Ludovic Courtès, 2015/01/28
- 173/376: Tweak, Ludovic Courtès, 2015/01/28
- 168/376: Fix boost::too_many_args error, Ludovic Courtès, 2015/01/28
- 174/376: build-remote.pl: UTF-8-decode errors, Ludovic Courtès, 2015/01/28
- 180/376: Don't rely on process substitution, Ludovic Courtès, 2015/01/28
- 177/376: Improved support for building JARs, Ludovic Courtès, 2015/01/28
- 187/376: Drop reference to FreeBSD, Ludovic Courtès, 2015/01/28
- 189/376: Tweak some chapter titles, Ludovic Courtès, 2015/01/28
- 175/376: Hack to prevent Makefile.config from being regenerated by "make clean", Ludovic Courtès, 2015/01/28