diff options
author | Anders Rune Jensen <arj@gentoo.org> | 2004-08-02 02:39:44 +0000 |
---|---|---|
committer | Anders Rune Jensen <arj@gentoo.org> | 2004-08-02 02:39:44 +0000 |
commit | fdcce4dad922f952df6c5df01e7f6473b6ef97a2 (patch) | |
tree | 22148a9c4be82093223a47172a10fb3c437fafed /app-dicts | |
parent | Add new license, used by app-dicts/wordnet (diff) | |
download | gentoo-2-fdcce4dad922f952df6c5df01e7f6473b6ef97a2.tar.gz gentoo-2-fdcce4dad922f952df6c5df01e7f6473b6ef97a2.tar.bz2 gentoo-2-fdcce4dad922f952df6c5df01e7f6473b6ef97a2.zip |
new ebuild
Diffstat (limited to 'app-dicts')
-rw-r--r-- | app-dicts/wordnet/ChangeLog | 11 | ||||
-rw-r--r-- | app-dicts/wordnet/files/Makefiles.diff | 65 | ||||
-rw-r--r-- | app-dicts/wordnet/files/digest-wordnet-2.0 | 1 | ||||
-rw-r--r-- | app-dicts/wordnet/metadata.xml | 5 | ||||
-rw-r--r-- | app-dicts/wordnet/wordnet-2.0.ebuild | 34 |
5 files changed, 116 insertions, 0 deletions
diff --git a/app-dicts/wordnet/ChangeLog b/app-dicts/wordnet/ChangeLog new file mode 100644 index 000000000000..46dbcf21ff91 --- /dev/null +++ b/app-dicts/wordnet/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-dicts/wordnet +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-dicts/wordnet/ChangeLog,v 1.1 2004/08/02 02:39:44 arj Exp $ + +*wordnet-2.0 (02 Aug 2004) + + 02 Aug 2004; Anders Rune Jensen <arj@gentoo.org> : + Initial import. Ebuild submitted by Eugene Koontz <ekoontz@hiro-tan.org>. + Thanks to mlsfit138 on forums.gentoo.org for suggesting an ebuild for + wordnet. Thanks to shintora on #gentoo IRC for helpful tips on creating + ebuilds. diff --git a/app-dicts/wordnet/files/Makefiles.diff b/app-dicts/wordnet/files/Makefiles.diff new file mode 100644 index 000000000000..779968d3522b --- /dev/null +++ b/app-dicts/wordnet/files/Makefiles.diff @@ -0,0 +1,65 @@ +diff -r -u WordNet-2.0/Makefile /var/tmp/portage/wordnet-2.0-r1/work/WordNet-2.0/Makefile +--- WordNet-2.0/Makefile 2003-06-16 09:09:25.000000000 -0700 ++++ /var/tmp/portage/wordnet-2.0-r1/work/WordNet-2.0/Makefile 2003-12-04 21:46:36.000000000 -0800 +@@ -118,10 +118,10 @@ + CC = gcc + + # Use this for Solaris +-LOCAL_LDFLAGS = -R/usr/openwin/lib:/usr/lib:/usr/local/lib ++#LOCAL_LDFLAGS = -R/usr/openwin/lib:/usr/lib:/usr/local/lib + + # Use this for Irix and Linux +-#LOCAL_LDFLAGS = ++LOCAL_LDFLAGS = -L/usr/X11R6/lib + + # "UNIX" must be defined for things to compile... + +@@ -178,7 +178,7 @@ + + # Libraries needed for Linux + +-#WNB_LIBS = -ltk -ltcl -lX11 -lm -lnsl -ldl -lpthread ++WNB_LIBS = -ltk -ltcl -lX11 -lm -lnsl -ldl -lpthread + + ###### Finally, the "make" targets ###### + +diff -r -u WordNet-2.0/include/wnconsts.h /var/tmp/portage/wordnet-2.0-r1/work/WordNet-2.0/include/wnconsts.h +--- WordNet-2.0/include/wnconsts.h 2003-06-16 08:49:43.000000000 -0700 ++++ /var/tmp/portage/wordnet-2.0-r1/work/WordNet-2.0/include/wnconsts.h 2003-12-04 21:45:47.000000000 -0800 +@@ -16,8 +16,8 @@ + + #ifdef UNIX + #define DICTDIR "/dict" +-#define DEFAULTPATH "/usr/local/WordNet-2.0/dict" +-#define DEFAULTBIN "/usr/local/WordNet-2.0/bin" ++#define DEFAULTPATH "/usr/share/wordnet/dict" ++#define DEFAULTBIN "/usr/bin" + #define DATAFILE "%s/data.%s" + #define INDEXFILE "%s/index.%s" + #define SENSEIDXFILE "%s/index.sense" +diff -r -u WordNet-2.0/src/include/wnconsts.h /var/tmp/portage/wordnet-2.0-r1/work/WordNet-2.0/src/include/wnconsts.h +--- WordNet-2.0/src/include/wnconsts.h 2003-06-16 08:49:43.000000000 -0700 ++++ /var/tmp/portage/wordnet-2.0-r1/work/WordNet-2.0/src/include/wnconsts.h 2003-12-04 21:45:47.000000000 -0800 +@@ -16,8 +16,8 @@ + + #ifdef UNIX + #define DICTDIR "/dict" +-#define DEFAULTPATH "/usr/local/WordNet-2.0/dict" +-#define DEFAULTBIN "/usr/local/WordNet-2.0/bin" ++#define DEFAULTPATH "/usr/share/wordnet/dict" ++#define DEFAULTBIN "/usr/bin" + #define DATAFILE "%s/data.%s" + #define INDEXFILE "%s/index.%s" + #define SENSEIDXFILE "%s/index.sense" +diff -r -u WordNet-2.0/src/wnb/wnb /var/tmp/portage/wordnet-2.0-r1/work/WordNet-2.0/src/wnb/wnb +--- WordNet-2.0/src/wnb/wnb 2003-08-01 07:20:42.000000000 -0700 ++++ /var/tmp/portage/wordnet-2.0-r1/work/WordNet-2.0/src/wnb/wnb 2003-12-04 21:45:47.000000000 -0800 +@@ -97,7 +97,7 @@ + set labonly 0 + if {$tcl_platform(platform) == "unix"} { + if {[lsearch -exact [array names env] WNHOME] == -1} { +- set resourcedir "/usr/local/WordNet-2.0/lib/wnres" ++ set resourcedir "/usr/lib/wnres" + } else { + set resourcedir "$env(WNHOME)/lib/wnres" + } diff --git a/app-dicts/wordnet/files/digest-wordnet-2.0 b/app-dicts/wordnet/files/digest-wordnet-2.0 new file mode 100644 index 000000000000..c444d505f5e2 --- /dev/null +++ b/app-dicts/wordnet/files/digest-wordnet-2.0 @@ -0,0 +1 @@ +MD5 42faaf63f391bb1e13f59ca83490634d WordNet-2.0.tar.gz 12847598 diff --git a/app-dicts/wordnet/metadata.xml b/app-dicts/wordnet/metadata.xml new file mode 100644 index 000000000000..8f9450df306e --- /dev/null +++ b/app-dicts/wordnet/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>app-dicts</herd> +</pkgmetadata> diff --git a/app-dicts/wordnet/wordnet-2.0.ebuild b/app-dicts/wordnet/wordnet-2.0.ebuild new file mode 100644 index 000000000000..54f8eb441e01 --- /dev/null +++ b/app-dicts/wordnet/wordnet-2.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-dicts/wordnet/wordnet-2.0.ebuild,v 1.1 2004/08/02 02:39:44 arj Exp $ + +inherit eutils + +DESCRIPTION="WordNet : a lexical database for the English language" +HOMEPAGE="http://www.cogsci.princeton.edu/~wn/" +SRC_URI="ftp://ftp.cogsci.princeton.edu/pub/wordnet/${PV}/WordNet-${PV}.tar.gz" +DEPEND="tcl tk" +LICENSE="Princeton" +IUSE="" +SLOT="0" +KEYWORDS="~x86" +S=${WORKDIR}/WordNet-${PV} + +src_unpack() { + unpack $A + epatch ${FILESDIR}/Makefiles.diff +} + +src_compile() { + MAKEOPTS="-e" + PLATFORM=linux WN_ROOT=${T}/usr \ + WN_DICTDIR=${T}/usr/share/wordnet/dict \ + WN_MANDIR=${T}/usr/share/man \ + WN_DOCDIR=${T}/usr/share/doc/wordnet-${PV} \ + CFLAGS="${CFLAGS} -DUNIX -I${T}/usr/include" \ + emake SrcWorld || die +} + +src_install() { + cp -r ${T}/usr ${D} +} |