Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5311 - ebuild for cdlabelgen: a cd cover creator
Summary: ebuild for cdlabelgen: a cd cover creator
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Maik Schreiber
URL:
Whiteboard:
Keywords:
: 4887 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-07-20 12:41 UTC by Christian V. J. Brüssow
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian V. J. Brüssow 2002-07-20 12:41:22 UTC
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 Christian V. J. Brüssow 2002-07-20 12:41:22 UTC
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 Maik Schreiber 2002-07-21 12:50:48 UTC
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 Arcady Genkin (RETIRED) gentoo-dev 2002-07-23 23:10:03 UTC
*** Bug 4887 has been marked as a duplicate of this bug. ***