source: trunk/dports/textproc/wordnet/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem          1.0
4
5name                wordnet
6version             3.0
7revision            3
8categories          textproc
9maintainers         kallisys.net:pguyot openmaintainer
10description         Lexical database for the English language
11long_description    WordNet® is a large lexical database of English, developed \
12                    under the direction of George A. Miller. Nouns, verbs, \
13                    adjectives and adverbs are grouped into sets of cognitive \
14                    synonyms (synsets), each expressing a distinct concept. \
15                    Synsets are interlinked by means of conceptual-semantic \
16                    and lexical relations. WordNet's structure makes it a \
17                    useful tool for computational linguistics and natural \
18                    language processing.
19homepage            http://wordnet.princeton.edu/
20platforms           darwin
21master_sites        http://wordnet.princeton.edu/${version}/ \
22                    ftp://ftp.cogsci.princeton.edu/pub/wordnet/${version}/
23distname            WordNet-${version}
24checksums           md5     89b4db7c6840ce69a8e315a3f83d996b \
25                    sha1    aeb7887cb4935756cf77deb1ea86973dff0e32fb \
26                    rmd160  87b3719273ec8f1d87742d6802af4d442b6ad040
27use_bzip2           yes
28
29depends_lib         port:tcl \
30                    port:tk
31patchfiles          patch-lib-wnrtl.c.diff
32
33post-patch {
34    reinplace "s|/usr/local/WordNet-3.0/dict|${prefix}/share/WordNet-3.0/dict|g" ${worksrcpath}/include/wn.h
35}
36
37configure.args      --mandir=${prefix}/share/man
38post-configure {
39    reinplace "s|${prefix}/dict|${prefix}/share/WordNet-3.0/dict|g" ${worksrcpath}/config.h
40}
41
42# Build a shared library (so does FreeBSD's port).
43post-build {
44    system "gcc -install_name ${prefix}/lib/libWN.dylib -dynamiclib ${worksrcpath}/lib/*.o -o ${worksrcpath}/lib/libWN.dylib"
45}
46
47destroot.args-append    dictdir=${prefix}/share/WordNet-3.0/dict \
48                        htmldir=${prefix}/share/WordNet-3.0/doc/html \
49                        psdir=${prefix}/share/WordNet-3.0/doc/ps \
50                        pdfdir=${prefix}/share/WordNet-3.0/doc/pdf
51
52post-destroot {
53    xinstall -m 644 ${worksrcpath}/lib/libWN.dylib ${destroot}${prefix}/lib/
54}
Note: See TracBrowser for help on using the repository browser.