intial ebuild submission
authorStuart Bouyer <stubear@gentoo.org>
Mon, 28 Oct 2002 13:27:58 +0000 (13:27 +0000)
committerStuart Bouyer <stubear@gentoo.org>
Mon, 28 Oct 2002 13:27:58 +0000 (13:27 +0000)
app-i18n/kcc/files/digest-kcc-1.0 [new file with mode: 0644]
app-i18n/kcc/files/kcc-1.0/gentoo.diff [new file with mode: 0644]
app-i18n/kcc/kcc-1.0.ebuild [new file with mode: 0644]

diff --git a/app-i18n/kcc/files/digest-kcc-1.0 b/app-i18n/kcc/files/digest-kcc-1.0
new file mode 100644 (file)
index 0000000..0dc61ab
--- /dev/null
@@ -0,0 +1 @@
+MD5 ae22fdd91b6160f6cfe322e33fb1502f kcc.tar.gz 18869
diff --git a/app-i18n/kcc/files/kcc-1.0/gentoo.diff b/app-i18n/kcc/files/kcc-1.0/gentoo.diff
new file mode 100644 (file)
index 0000000..26f3a92
--- /dev/null
@@ -0,0 +1,25 @@
+--- Makefile.orig      Sat Aug  3 18:44:55 2002
++++ Makefile   Sat Aug  3 18:45:57 2002
+@@ -7,8 +7,8 @@
+ 
+ #     @(#)Makefile 2.3 (Y.Tonooka) 3/28/94
+ 
+-          BINPATH = /usr/local/bin
+-          MANPATH = /usr/local/man
++          BINPATH = $(DESTDIR)/usr/bin
++          MANPATH = $(DESTDIR)/usr/man
+           JMANDIR = japanese
+            CFLAGS = -O
+ 
+@@ -34,9 +34,11 @@
+ 
+ $(BINPATH)/kcc: kcc.c
+       $(MAKE) kcc
++      mkdir -p $(BINPATH)
+       $(INSTALL) -s kcc $(BINPATH)
+ 
+ $(MANPATH)/$(JMANDIR)/man1/kcc.1: kcc.jman
++      mkdir -p $@
+       $(INSTALL) -m 644 kcc.jman $@
+ 
+ clean:
diff --git a/app-i18n/kcc/kcc-1.0.ebuild b/app-i18n/kcc/kcc-1.0.ebuild
new file mode 100644 (file)
index 0000000..1480666
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# 
+
+KEYWORDS="~x86"
+S="${WORKDIR}/${PN}"
+DESCRIPTION="A Kanji code converter"
+SRC_URI="ftp://ftp.jp.freebsd.org/pub/FreeBSD/ports/distfiles/${PN}.tar.gz"
+HOMEPAGE=""    #There doesn't seem to be a home page for this package!
+LICENSE="GPL2"
+
+DEPEND="virtual/glibc"
+
+SLOT=0
+
+src_unpack() {
+
+       # unpack the archive
+       unpack ${A}
+
+       cd ${S}
+       patch -p0 < ${FILESDIR}/${P}/gentoo.diff || die
+}
+
+src_compile() {
+       make
+}
+
+src_install () {
+
+       # install libs, executables, dictionaries
+       make DESTDIR=${D} install     || die "installation failed"
+
+       # install docs
+       dodoc README
+}