/[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.17 - (hide annotations) (download)
Sat Mar 7 14:11:06 2009 UTC (9 years, 7 months ago) by gentoofan23
Branch: MAIN
Changes since 1.16: +4 -16 lines
Transition to eapi 2 use deps

1 gentoofan23 1.17 # Copyright 1999-2009 Gentoo Foundation
2 jer 1.1 # Distributed under the terms of the GNU General Public License v2
3 gentoofan23 1.17 # $Header: /var/cvsroot/gentoo-x86/app-text/an/an-0.95.3.ebuild,v 1.16 2008/08/28 10:58:54 jer Exp $
4 jer 1.2
5 gentoofan23 1.17 EAPI="2"
6 jer 1.2 inherit eutils toolchain-funcs versionator
7 jer 1.1
8     DESCRIPTION="Very fast anagram generator with dictionary lookup"
9 jer 1.16 HOMEPAGE="http://packages.debian.org/unstable/games/an"
10 jer 1.1
11     MY_PV="$(get_version_component_range 1-2)"
12 jer 1.6 SRC_URI="mirror://debian/pool/main/a/an/${PN}_${MY_PV}.orig.tar.gz"
13 jer 1.1
14     LICENSE="GPL-2 LGPL-2"
15     SLOT="0"
16 yoswink 1.15 KEYWORDS="alpha amd64 hppa ppc ppc64 x86"
17 jer 1.1 IUSE=""
18    
19 gentoofan23 1.17 RDEPEND="sys-apps/miscfiles[-minimal]"
20 jer 1.1
21     S="${WORKDIR}/${PN}-${MY_PV}"
22    
23     src_unpack() {
24     unpack ${A}
25     cd ${S}
26    
27     # Patching to -r3:
28     MY_PL="$(replace_version_separator 2 -)"
29 jer 1.8 epatch "${FILESDIR}"/${PN}_${MY_PL}.diff
30 jer 1.1
31     ebegin "Patching an to use toolchain and custom CFLAGS"
32     sed -e "s:gcc:$(tc-getCC):" \
33     -e "s:-O2.*:${CFLAGS}:" \
34     -i Makefile lib/Makefile
35     eend ${?}
36    
37     # sys-apps/miscfiles doesn't have /usr/dict/words:
38     sed \
39     -e 's:/usr/dict/words:/usr/share/dict/words:' \
40     -i README || die
41     }
42    
43     src_install() {
44     dobin ${PN} || die
45     doman ${PN}.6 || die
46     dodoc \
47     debian/changelog \
48     debian/README.Debian \
49     DICTIONARY \
50     EXAMPLE.ANAGRAMS \
51     HINTS \
52     INSTALL \
53     README \
54     TODO || die
55     }
56    
57     pkg_postinst() {
58     einfo "Helpful note from an's author:"
59     einfo " If you do not have a dictionary you can obtain one from the"
60     einfo " following site: ftp://ftp.funet.fi/pub/doc/dictionaries/"
61     einfo " You will find a selection of dictionaries in many different"
62     einfo " languages here."
63     }

  ViewVC Help
Powered by ViewVC 1.1.20