/[gentoo-x86]/app-text/an/an-0.95.3.ebuild
Gentoo

Contents of /app-text/an/an-0.95.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Thu Dec 1 20:37:50 2005 UTC (12 years ago) by metalgod
Branch: MAIN
Changes since 1.3: +2 -2 lines
Added ~amd64 keyword. Bug #113966.
(Portage version: 2.0.53_rc7)

1 jer 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 metalgod 1.4 # $Header: /var/cvsroot/gentoo-x86/app-text/an/an-0.95.3.ebuild,v 1.3 2005/12/01 04:28:02 tgall Exp $
4 jer 1.2
5     inherit eutils toolchain-funcs versionator
6 jer 1.1
7     DESCRIPTION="Very fast anagram generator with dictionary lookup"
8     HOMEPAGE="http://packages.debian.org/stable/games/an"
9    
10     MY_PV="$(get_version_component_range 1-2)"
11     SRC_URI="http://ftp.debian.org/debian/pool/main/a/an/${PN}_${MY_PV}.orig.tar.gz"
12    
13     LICENSE="GPL-2 LGPL-2"
14     SLOT="0"
15 metalgod 1.4 KEYWORDS="~amd64 ~hppa ~ppc64 ~x86"
16 jer 1.1 IUSE=""
17    
18     RDEPEND="sys-apps/miscfiles"
19    
20     S="${WORKDIR}/${PN}-${MY_PV}"
21    
22     src_unpack() {
23     unpack ${A}
24     cd ${S}
25    
26     # Patching to -r3:
27     MY_PL="$(replace_version_separator 2 -)"
28     epatch "${FILESDIR}"/${PN}_${MY_PL}.diff.gz
29    
30     ebegin "Patching an to use toolchain and custom CFLAGS"
31     sed -e "s:gcc:$(tc-getCC):" \
32     -e "s:-O2.*:${CFLAGS}:" \
33     -i Makefile lib/Makefile
34     eend ${?}
35    
36     # sys-apps/miscfiles doesn't have /usr/dict/words:
37     sed \
38     -e 's:/usr/dict/words:/usr/share/dict/words:' \
39     -i README || die
40     }
41     src_compile() {
42     emake || die
43     }
44    
45     src_install() {
46     dobin ${PN} || die
47     doman ${PN}.6 || die
48     dodoc \
49     debian/changelog \
50     debian/README.Debian \
51     DICTIONARY \
52     EXAMPLE.ANAGRAMS \
53     HINTS \
54     INSTALL \
55     README \
56     TODO || die
57     }
58    
59     pkg_postinst() {
60     ewarn "If you merged sys-apps/miscfiles with USE=minimal,"
61     ewarn "an will NOT work properly, as /usr/share/dict/words"
62     ewarn "will then be a symlink to a gzipped file. an currently"
63     ewarn "does not support gzipped dictionary files and will"
64     ewarn "only produce garbage."
65     ewarn "Do 'USE=-minimal emerge sys-apps/miscfiles', or run an"
66     ewarn "with the -d /path/to/dictionary option, perhaps using"
67     ewarn "one of the files mentioned below."
68     echo
69    
70     einfo "Helpful note from an's author:"
71     einfo " If you do not have a dictionary you can obtain one from the"
72     einfo " following site: ftp://ftp.funet.fi/pub/doc/dictionaries/"
73     einfo " You will find a selection of dictionaries in many different"
74     einfo " languages here."
75     }

  ViewVC Help
Powered by ViewVC 1.1.20