Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libtrash: ChangeLog libtrash-3.2.ebuild libtrash-2.4.ebuild libtrash-2.6.ebuild
Date: Tue, 30 Dec 2008 01:33:25
Message-Id: E1LHTU3-0008Jr-1k@stork.gentoo.org
1 matsuu 08/12/30 01:33:23
2
3 Modified: ChangeLog
4 Added: libtrash-3.2.ebuild
5 Removed: libtrash-2.4.ebuild libtrash-2.6.ebuild
6 Log:
7 Version bumped, bug #252771.
8 (Portage version: 2.1.6.3/cvs/Linux 2.6.28-gentoo x86_64)
9
10 Revision Changes Path
11 1.13 sys-libs/libtrash/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libtrash/ChangeLog?rev=1.13&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libtrash/ChangeLog?rev=1.13&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libtrash/ChangeLog?r1=1.12&r2=1.13
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libtrash/ChangeLog,v
20 retrieving revision 1.12
21 retrieving revision 1.13
22 diff -u -r1.12 -r1.13
23 --- ChangeLog 17 Nov 2008 22:58:49 -0000 1.12
24 +++ ChangeLog 30 Dec 2008 01:33:22 -0000 1.13
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-libs/libtrash
27 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libtrash/ChangeLog,v 1.12 2008/11/17 22:58:49 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libtrash/ChangeLog,v 1.13 2008/12/30 01:33:22 matsuu Exp $
30 +
31 +*libtrash-3.2 (30 Dec 2008)
32 +
33 + 30 Dec 2008; MATSUU Takuto <matsuu@g.o>
34 + +files/libtrash-3.2-gentoo.patch, -libtrash-2.4.ebuild,
35 + -libtrash-2.6.ebuild, +libtrash-3.2.ebuild:
36 + Version bumped, bug #252771.
37
38 17 Nov 2008; Diego E. Pettenò <flameeyes@g.o>
39 files/libtrash-2.4-gentoo.patch:
40
41
42
43 1.1 sys-libs/libtrash/libtrash-3.2.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libtrash/libtrash-3.2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/libtrash/libtrash-3.2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: libtrash-3.2.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libtrash/libtrash-3.2.ebuild,v 1.1 2008/12/30 01:33:22 matsuu Exp $
53
54 inherit eutils toolchain-funcs
55
56 DESCRIPTION="provides a trash can by intercepting certain calls to glibc"
57 HOMEPAGE="http://pages.stern.nyu.edu/~marriaga/software/libtrash/"
58 SRC_URI="http://pages.stern.nyu.edu/~marriaga/software/libtrash/${P}.tgz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~ppc ~x86"
63 IUSE=""
64
65 DEPEND="dev-lang/perl"
66
67 src_unpack() {
68 unpack ${A}
69 cd "${S}"
70 epatch "${FILESDIR}/${P}-gentoo.patch"
71 sed -i -e "/^INSTLIBDIR/s:local/lib:$(get_libdir):" src/Makefile || die
72
73 # now let's unpack strash too in cash anyone is interested
74 cd cleanTrash
75 unpack ./strash-0.9.tar.gz
76 }
77
78 src_compile() {
79 emake CC="$(tc-getCC)" || die "Error Making Source...Exiting"
80 }
81
82 src_install() {
83 dodir /etc /usr/$(get_libdir)
84 emake DESTDIR="${D}" install || die "Error Installing ${P}...Exiting"
85
86 dosbin cleanTrash/ct2.pl
87 exeinto /etc/cron.daily
88 doexe "${FILESDIR}/cleanTrash.cron"
89
90 dodoc CHANGE.LOG README libtrash.conf TODO config.txt
91
92 docinto cleanTrash
93 dodoc cleanTrash/README cleanTrash/cleanTrash
94
95 # new strash installation stuff
96 dosbin cleanTrash/strash-0.9/strash
97 docinto strash
98 dodoc cleanTrash/strash-0.9/README
99 doman cleanTrash/strash-0.9/strash.8
100 }
101
102 pkg_postinst() {
103 elog
104 elog "To use this you have to put the trash library as one"
105 elog "of the variables in LD_PRELOAD."
106 elog "Example in bash:"
107 elog "export LD_PRELOAD=/usr/$(get_libdir)/libtrash.so"
108 elog
109 elog "Also, see /etc/cron.daily/cleanTrash.cron if you'd like to turn on"
110 elog "daily trash cleanup."
111 elog
112 }