/[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.18 - (hide annotations) (download)
Tue Jan 25 02:50:58 2011 UTC (7 years, 9 months ago) by jer
Branch: MAIN
Changes since 1.17: +6 -10 lines
Clean up patches. Fix phases, remove ebegin/eend, make sed die().

(Portage version: 2.2.0_alpha19/cvs/Linux i686)

1 jer 1.18 # Copyright 1999-2011 Gentoo Foundation
2 jer 1.1 # Distributed under the terms of the GNU General Public License v2
3 jer 1.18 # $Header: /var/cvsroot/gentoo-x86/app-text/an/an-0.95.3.ebuild,v 1.17 2009/03/07 14:11:06 gentoofan23 Exp $
4 jer 1.2
5 gentoofan23 1.17 EAPI="2"
6 jer 1.18
7 jer 1.2 inherit eutils toolchain-funcs versionator
8 jer 1.1
9     DESCRIPTION="Very fast anagram generator with dictionary lookup"
10 jer 1.16 HOMEPAGE="http://packages.debian.org/unstable/games/an"
11 jer 1.1
12     MY_PV="$(get_version_component_range 1-2)"
13 jer 1.6 SRC_URI="mirror://debian/pool/main/a/an/${PN}_${MY_PV}.orig.tar.gz"
14 jer 1.1
15     LICENSE="GPL-2 LGPL-2"
16     SLOT="0"
17 yoswink 1.15 KEYWORDS="alpha amd64 hppa ppc ppc64 x86"
18 jer 1.1 IUSE=""
19    
20 gentoofan23 1.17 RDEPEND="sys-apps/miscfiles[-minimal]"
21 jer 1.1
22     S="${WORKDIR}/${PN}-${MY_PV}"
23    
24 jer 1.18 src_prepare() {
25 jer 1.1 # Patching to -r3:
26     MY_PL="$(replace_version_separator 2 -)"
27 jer 1.8 epatch "${FILESDIR}"/${PN}_${MY_PL}.diff
28 jer 1.1
29     sed -e "s:gcc:$(tc-getCC):" \
30     -e "s:-O2.*:${CFLAGS}:" \
31 jer 1.18 -i Makefile lib/Makefile || die "sed Makefile lib/Makefile"
32 jer 1.1
33     # sys-apps/miscfiles doesn't have /usr/dict/words:
34     sed \
35     -e 's:/usr/dict/words:/usr/share/dict/words:' \
36 jer 1.18 -i README || die "sed README"
37 jer 1.1 }
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