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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-text/an/Attic/an-0.95.3.ebuild,v 1.7 2005/12/11 07:04:51 wormo Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-text/an/Attic/an-0.95.3.ebuild,v 1.8 2005/12/18 00:31:43 jer Exp $
4 4
5inherit eutils toolchain-funcs versionator 5inherit eutils toolchain-funcs versionator
6 6
7DESCRIPTION="Very fast anagram generator with dictionary lookup" 7DESCRIPTION="Very fast anagram generator with dictionary lookup"
8HOMEPAGE="http://packages.debian.org/stable/games/an" 8HOMEPAGE="http://packages.debian.org/stable/games/an"
23 unpack ${A} 23 unpack ${A}
24 cd ${S} 24 cd ${S}
25 25
26 # Patching to -r3: 26 # Patching to -r3:
27 MY_PL="$(replace_version_separator 2 -)" 27 MY_PL="$(replace_version_separator 2 -)"
28 epatch "${FILESDIR}"/${PN}_${MY_PL}.diff.gz 28 epatch "${FILESDIR}"/${PN}_${MY_PL}.diff
29 29
30 ebegin "Patching an to use toolchain and custom CFLAGS" 30 ebegin "Patching an to use toolchain and custom CFLAGS"
31 sed -e "s:gcc:$(tc-getCC):" \ 31 sed -e "s:gcc:$(tc-getCC):" \
32 -e "s:-O2.*:${CFLAGS}:" \ 32 -e "s:-O2.*:${CFLAGS}:" \
33 -i Makefile lib/Makefile 33 -i Makefile lib/Makefile
35 35
36 # sys-apps/miscfiles doesn't have /usr/dict/words: 36 # sys-apps/miscfiles doesn't have /usr/dict/words:
37 sed \ 37 sed \
38 -e 's:/usr/dict/words:/usr/share/dict/words:' \ 38 -e 's:/usr/dict/words:/usr/share/dict/words:' \
39 -i README || die 39 -i README || die
40}
41src_compile() {
42 emake || die
43} 40}
44 41
45src_install() { 42src_install() {
46 dobin ${PN} || die 43 dobin ${PN} || die
47 doman ${PN}.6 || die 44 doman ${PN}.6 || die

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20