* [PATCH 0/2] Updated: Prefix "java-" for Java packages
@ 2016-04-16 8:51 Hartmut Goebel
2016-04-16 8:51 ` [PATCH 1/2] doc: Add specification " Hartmut Goebel
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Hartmut Goebel @ 2016-04-16 8:51 UTC (permalink / raw)
To: guix-devel
As discussed on the mailinglist these day, these patches
introduce the prefix "java-" for Java packages.
These are updated patches for those I send earlier these days. Issues when
building the manual should be fixed now. I also removed the last patch, which
added aliases for the old names, and which have been decided to not to be
included.
Hartmut Goebel (2):
doc: Add specification for Java packages
gnu: Rename Java packages to match new naming specification.
doc/guix.texi | 21 +++++++++++++++++++++
gnu/packages/bioinformatics.scm | 12 ++++++------
gnu/packages/java.scm | 4 ++--
gnu/packages/music.scm | 6 +++---
4 files changed, 32 insertions(+), 11 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] doc: Add specification for Java packages
2016-04-16 8:51 [PATCH 0/2] Updated: Prefix "java-" for Java packages Hartmut Goebel
@ 2016-04-16 8:51 ` Hartmut Goebel
2016-04-16 8:51 ` [PATCH 2/2] gnu: Rename Java packages to match new naming specification Hartmut Goebel
2016-04-19 14:56 ` [PATCH 0/2] Updated: Prefix "java-" for Java packages Ricardo Wurmus
2 siblings, 0 replies; 4+ messages in thread
From: Hartmut Goebel @ 2016-04-16 8:51 UTC (permalink / raw)
To: guix-devel
* doc/guix.texi (Java Packages): New subsection.
---
doc/guix.texi | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/doc/guix.texi b/doc/guix.texi
index 6c7107c..b54582b 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -225,6 +225,7 @@ Packaging Guidelines
* Synopses and Descriptions:: Helping users find the right package.
* Python Modules:: Taming the snake.
* Perl Modules:: Little pearls.
+* Java Packages:: Coffee break.
* Fonts:: Fond of fonts.
Contributing
@@ -10739,6 +10740,7 @@ needed is to review and apply the patch.
* Synopses and Descriptions:: Helping users find the right package.
* Python Modules:: Taming the snake.
* Perl Modules:: Little pearls.
+* Java Packages:: Coffee break.
* Fonts:: Fond of fonts.
@end menu
@@ -10980,6 +10982,25 @@ are also prepended by @code{perl-}. Such modules tend to have the word
prefix. For instance, @code{libwww-perl} becomes @code{perl-libwww}.
+@node Java Packages
+@subsection Java Packages
+
+Java programs standing for themselves are named as any other package,
+using the lowercase upstream name.
+
+To avoid confusion and naming clashes with other programming languages,
+it's desirable that the name of a package for a Java package is prefixed
+with @code{java-}. If a project already contains the word
+@code{java}, we drop this; for instance, the package @code{dnsjava}
+is packaged under the name @code{java-dns}.
+
+For Java packages containing a single class or a small class hierarchy,
+we use the lowercase class name, replace all occurrences of @code{.} by
+dashes and prepend the prefix @code{java-}. So the class
+@code{apache.commons.cli} becomes package
+@code{java-apache-commons-cli}.
+
+
@node Fonts
@subsection Fonts
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] gnu: Rename Java packages to match new naming specification.
2016-04-16 8:51 [PATCH 0/2] Updated: Prefix "java-" for Java packages Hartmut Goebel
2016-04-16 8:51 ` [PATCH 1/2] doc: Add specification " Hartmut Goebel
@ 2016-04-16 8:51 ` Hartmut Goebel
2016-04-19 14:56 ` [PATCH 0/2] Updated: Prefix "java-" for Java packages Ricardo Wurmus
2 siblings, 0 replies; 4+ messages in thread
From: Hartmut Goebel @ 2016-04-16 8:51 UTC (permalink / raw)
To: guix-devel
* gnu/packages/bioinformatics.scm (htsjdk) (ngs-java): rename to ...
(java-htsjdk) (java-ngs) ... this.
(ncbi-vdb) [configure] [inputs] Use new name.
* gnu/packages/java.scm (swt): rename to ...
(java-swt) ... this.
* gnu/packages/music.scm (tuxguitar) [make-flags] [inputs]
[PROPERTIES]: Use new name of package "swt".
---
gnu/packages/bioinformatics.scm | 12 ++++++------
gnu/packages/java.scm | 4 ++--
gnu/packages/music.scm | 6 +++---
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index b76aadc..3094489 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -2075,9 +2075,9 @@ HMMs).")
from high-throughput sequencing assays.")
(license license:gpl3+)))
-(define-public htsjdk
+(define-public java-htsjdk
(package
- (name "htsjdk")
+ (name "java-htsjdk")
(version "1.129")
(source (origin
(method url-fetch)
@@ -3012,9 +3012,9 @@ any particular back-end implementation, and supports use of multiple back-ends
simultaneously.")
(license license:public-domain)))
-(define-public ngs-java
+(define-public java-ngs
(package (inherit ngs-sdk)
- (name "ngs-java")
+ (name "java-ngs")
(arguments
`(,@(substitute-keyword-arguments
`(#:modules ((guix build gnu-build-system)
@@ -3077,7 +3077,7 @@ simultaneously.")
(string-append "--with-ngs-sdk-prefix="
(assoc-ref inputs "ngs-sdk"))
(string-append "--with-ngs-java-prefix="
- (assoc-ref inputs "ngs-java"))
+ (assoc-ref inputs "java-ngs"))
(string-append "--with-hdf5-prefix="
(assoc-ref inputs "hdf5"))))))
(alist-cons-after
@@ -3103,7 +3103,7 @@ simultaneously.")
(inputs
`(("libxml2" ,libxml2)
("ngs-sdk" ,ngs-sdk)
- ("ngs-java" ,ngs-java)
+ ("java-ngs" ,java-ngs)
("libmagic" ,file)
("hdf5" ,hdf5)))
(native-inputs `(("perl" ,perl)))
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 9b6a647..7a9f47d 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -51,9 +51,9 @@
#:use-module (gnu packages texinfo)
#:use-module ((srfi srfi-1) #:select (fold alist-delete)))
-(define-public swt
+(define-public java-swt
(package
- (name "swt")
+ (name "java-swt")
(version "4.4.2")
(source (origin
(method url-fetch)
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index f733e45..a540845 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -734,7 +734,7 @@ is subjective.")
(string-append "PREFIX="
(assoc-ref %outputs "out"))
(string-append "SWT_PATH="
- (assoc-ref %build-inputs "swt")
+ (assoc-ref %build-inputs "java-swt")
"/share/java/swt.jar"))
#:tests? #f ;no "check" target
#:parallel-build? #f ;not supported
@@ -749,11 +749,11 @@ is subjective.")
(string-append "GCJFLAGS=-fsource=1.4 -fPIC " rest))
(("PROPERTIES\\?=")
(string-append "PROPERTIES?= -Dswt.library.path="
- (assoc-ref inputs "swt") "/lib"))
+ (assoc-ref inputs "java-swt") "/lib"))
(("\\$\\(GCJ\\) -o") "$(GCJ) $(LDFLAGS) -o"))
#t)))))
(inputs
- `(("swt" ,swt)))
+ `(("java-swt" ,java-swt)))
(native-inputs
`(("gcj" ,gcj)
("pkg-config" ,pkg-config)))
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] Updated: Prefix "java-" for Java packages
2016-04-16 8:51 [PATCH 0/2] Updated: Prefix "java-" for Java packages Hartmut Goebel
2016-04-16 8:51 ` [PATCH 1/2] doc: Add specification " Hartmut Goebel
2016-04-16 8:51 ` [PATCH 2/2] gnu: Rename Java packages to match new naming specification Hartmut Goebel
@ 2016-04-19 14:56 ` Ricardo Wurmus
2 siblings, 0 replies; 4+ messages in thread
From: Ricardo Wurmus @ 2016-04-19 14:56 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: guix-devel
Hartmut Goebel <h.goebel@crazy-compilers.com> writes:
> As discussed on the mailinglist these day, these patches
> introduce the prefix "java-" for Java packages.
>
> These are updated patches for those I send earlier these days. Issues when
> building the manual should be fixed now. I also removed the last patch, which
> added aliases for the old names, and which have been decided to not to be
> included.
Thank you for these updated patches. I just applied them with minor
changes.
~~ Ricardo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-19 14:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-16 8:51 [PATCH 0/2] Updated: Prefix "java-" for Java packages Hartmut Goebel
2016-04-16 8:51 ` [PATCH 1/2] doc: Add specification " Hartmut Goebel
2016-04-16 8:51 ` [PATCH 2/2] gnu: Rename Java packages to match new naming specification Hartmut Goebel
2016-04-19 14:56 ` [PATCH 0/2] Updated: Prefix "java-" for Java packages Ricardo Wurmus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.