/[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.19 - (show annotations) (download)
Sun Sep 30 18:12:43 2012 UTC (21 months, 3 weeks ago) by armin76
Branch: MAIN
Changes since 1.18: +3 -3 lines
Drop alpha keywords

(Portage version: 2.1.11.16/cvs/Linux ia64)

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

  ViewVC Help
Powered by ViewVC 1.1.20