Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-shells/tcsh: tcsh-6.18.01.ebuild ChangeLog
Date: Thu, 01 Mar 2012 16:30:58
Message-Id: 20120301163048.5BEEB2004B@flycatcher.gentoo.org
1 grobian 12/03/01 16:30:48
2
3 Modified: ChangeLog
4 Added: tcsh-6.18.01.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.01.20239-prefix/cvs/Darwin i386)
9
10 Revision Changes Path
11 1.110 app-shells/tcsh/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/tcsh/ChangeLog?rev=1.110&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/tcsh/ChangeLog?rev=1.110&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/tcsh/ChangeLog?r1=1.109&r2=1.110
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-shells/tcsh/ChangeLog,v
20 retrieving revision 1.109
21 retrieving revision 1.110
22 diff -u -r1.109 -r1.110
23 --- ChangeLog 9 Jan 2012 20:24:53 -0000 1.109
24 +++ ChangeLog 1 Mar 2012 16:30:48 -0000 1.110
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-shells/tcsh
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/ChangeLog,v 1.109 2012/01/09 20:24:53 ranger Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/ChangeLog,v 1.110 2012/03/01 16:30:48 grobian Exp $
30 +
31 +*tcsh-6.18.01 (01 Mar 2012)
32 +
33 + 01 Mar 2012; Fabian Groffen <grobian@g.o> +tcsh-6.18.01.ebuild:
34 + Version bump
35
36 09 Jan 2012; Brent Baude <ranger@g.o> tcsh-6.17-r1.ebuild:
37 Marking tcsh-6.17-r1 ppc for bug 389013
38
39
40
41 1.1 app-shells/tcsh/tcsh-6.18.01.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/tcsh/tcsh-6.18.01.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/tcsh/tcsh-6.18.01.ebuild?rev=1.1&content-type=text/plain
45
46 Index: tcsh-6.18.01.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-shells/tcsh/tcsh-6.18.01.ebuild,v 1.1 2012/03/01 16:30:48 grobian Exp $
51
52 EAPI="3"
53
54 inherit eutils flag-o-matic autotools prefix
55
56 CONFVER="1.9"
57
58 DESCRIPTION="Enhanced version of the Berkeley C shell (csh)"
59 HOMEPAGE="http://www.tcsh.org/"
60 SRC_URI="ftp://ftp.astron.com/pub/tcsh/${P}.tar.gz
61 http://www.gentoo.org/~grobian/distfiles/tcsh-gentoo-patches-r${CONFVER}.tar.bz2"
62
63 LICENSE="BSD"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
66 IUSE="nls doc"
67 RESTRICT="test"
68
69 # we need gettext because we run autoconf (AM_ICONV)
70 RDEPEND=">=sys-libs/ncurses-5.1
71 virtual/libiconv"
72 DEPEND="${RDEPEND}
73 sys-devel/gettext
74 doc? ( dev-lang/perl )"
75
76 CONFDIR=${WORKDIR}/tcsh-gentoo-patches-r${CONFVER}
77
78 src_prepare() {
79 epatch "${FILESDIR}"/${PN}-6.14.00-debian-dircolors.patch # bug #120792
80 epatch "${FILESDIR}"/${PN}-6.14-makefile.patch # bug #151951
81 epatch "${FILESDIR}"/${PN}-6.14-use-ncurses.patch
82 eautoreconf
83
84 # fix gencat usage
85 sed -i -e 's/cat \$\^ \$> | \$(GENCAT) \$@/rm -f $@; $(GENCAT) $@ $> $^/' \
86 nls/Makefile.in || die
87
88 # unify ECHO behaviour
89 echo "#undef ECHO_STYLE" >> config_f.h
90 echo "#define ECHO_STYLE BOTH_ECHO" >> config_f.h
91
92 eprefixify "${CONFDIR}"/*
93 # activate the right default PATH
94 if [[ -z ${EPREFIX} ]] ; then
95 sed -i \
96 -e 's/^#MAIN//' -e '/^#PREFIX/d' \
97 "${CONFDIR}"/csh.login || die
98 else
99 sed -i \
100 -e 's/^#PREFIX//' -e '/^#MAIN/d' \
101 "${CONFDIR}"/csh.login || die
102 fi
103 }
104
105 src_configure() {
106 # make tcsh look and live along the lines of the prefix
107 append-flags -D_PATH_DOTCSHRC="'"'"${EPREFIX}/etc/csh.cshrc"'"'"
108 append-flags -D_PATH_DOTLOGIN="'"'"${EPREFIX}/etc/csh.login"'"'"
109 append-flags -D_PATH_DOTLOGOUT="'"'"${EPREFIX}/etc/csh.logout"'"'"
110 append-flags -D_PATH_USRBIN="'"'"${EPREFIX}/usr/bin"'"'"
111 append-flags -D_PATH_BIN="'"'"${EPREFIX}/bin"'"'"
112
113 econf \
114 --prefix="${EPREFIX:-/}" \
115 --datarootdir='${prefix}/usr/share' \
116 $(use_enable nls) \
117 || die
118 }
119
120 src_install() {
121 emake DESTDIR="${D}" install install.man || die
122
123 if use doc ; then
124 perl tcsh.man2html tcsh.man || die
125 dohtml tcsh.html/*.html
126 fi
127
128 insinto /etc
129 doins \
130 "${CONFDIR}"/csh.cshrc \
131 "${CONFDIR}"/csh.login
132
133 dodoc FAQ Fixes NewThings Ported README WishList Y2K
134
135 # bug #119703: add csh -> tcsh symlink
136 dosym /bin/tcsh /bin/csh
137 }