Bug 5311 - ebuild for cdlabelgen: a cd cover creator
Bug#: 5311 Product:  Gentoo Linux Version: 1.2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: blizzy-keyword-gentoo_bugs2.a8a736@blizzy.de Reported By: cvjb@epost.de
Component: Ebuilds
URL: 
Summary: ebuild for cdlabelgen: a cd cover creator
Keywords:  
Status Whiteboard: 
Opened: 2002-07-20 12:41 0000
Description:   Opened: 2002-07-20 12:41 0000
Hello,

I have created an ebuild for cdlabelgen, it works for me (merge, unmerge).
cdlabelgen's Makefile needs to be patched, as there is no autoconf support in
the original sources. The patch follows the ebuild. Maybe you find it useful.
cdlabelgen is a cd cover, envelope, and tray card creator.

Bye,
Christian V. J. Br

------- Comment #1 From Christian V. J. Brüssow 2002-07-20 12:41:22 0000 -------
Hello,

I have created an ebuild for cdlabelgen, it works for me (merge, unmerge).
cdlabelgen's Makefile needs to be patched, as there is no autoconf support in
the original sources. The patch follows the ebuild. Maybe you find it useful.
cdlabelgen is a cd cover, envelope, and tray card creator.

Bye,
Christian V. J. Brüssow

P.S. I have also made an ebuild of gtkcdlabel, a GUI for cdlabelgen, if
cdlabelgen is of any value, I can submit the ebuild for gtkcdlabel, too.

*** EBUILD BEGIN ***
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="A CD cover, tray card and envelope generator."
HOMEPAGE="http://www.aczone.com/tools/cdinsert"
SRC_URI="http://www.aczone.com/pub/tools/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"

# Build-time dependencies: none, it is a perl script.
DEPEND=""

# Run-time dependencies, same as DEPEND if RDEPEND isn't defined:
RDEPEND=">=perl-5.6.1"

S=${WORKDIR}/${P}
src_unpack() {
	unpack ${A}
	cd ${S}

	# Apply the makefile patch, this is the only configuration
	# so far :-(
	patch -p0 < ${FILESDIR}/${P}-makefile-gentoo.patch
}

#src_compile() {
#
# Nothing to do for us here.
#}

src_install () {
	emake DESTDIR=${D} install || die
	mkdir -p ${D}/usr/share/doc/${P} || die
	dodoc README INSTALL INSTALL.WEB cdlabelgen-2.3.0.spec cdlabelgen.html
cdinsert.pl || die
}
*** END OF EBUILD ***

*** BEGIN OF PATCH ***
--- Makefile	2002-04-03 22:13:42.000000000 +0200
+++ Makefile.new	2002-07-17 19:16:52.000000000 +0200
@@ -8,9 +8,9 @@
 # Change these to locations you need, also
 # remember to edit cdlabelgen and its @where_is_the_template as needed.
 
-BASE_DIR   = /usr/local
+BASE_DIR   = $(DESTDIR)/usr
 BIN_DIR   = $(BASE_DIR)/bin
-LIB_DIR   = $(BASE_DIR)/lib/cdlabelgen
+LIB_DIR   = $(BASE_DIR)/share/cdlabelgen
 SOURCES    = cdlabelgen ChangeLog INSTALL README Makefile cdinsert.pl
INSTALL.WEB cdlabelgen.html cdlabelgen$(VERSION).spec
 POSTSCRIPT = template.ps *.eps
 DISTFILES = $(SOURCES) $(POSTSCRIPT)
@@ -37,7 +37,7 @@
 	for file in $(POSTSCRIPT); do \
 
	$(INSTALL_FILE) postscript/$$file $(LIB_DIR)/; \
 	done
-
echo "** Done. Be sure to edit $(BIN_DIR)/cdlabelgen and fix
@where_is_the_template - if needed!"
+#
echo "** Done. Be sure to edit $(BIN_DIR)/cdlabelgen and fix
@where_is_the_template - if needed!"
 
 dist: all
 	rm -rf cdlabelgen$(VERSION)
*** END OF PATCH ***

------- Comment #2 From Maik Schreiber 2002-07-21 12:50:48 0000 -------
Committed as app-cdr/cdlabelgen. Thanks for submitting!

Of course you can submit your ebuild for gtkcdlabel, just file another bug report.

Also, please use the "Create a New Attachment" feature when submitting files
(like ebuilds). Thanks.

------- Comment #3 From Arcady Genkin (RETIRED) 2002-07-23 23:10:03 0000 -------
*** Bug 4887 has been marked as a duplicate of this bug. ***