1 |
pinkbyte 13/02/25 21:22:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libtrash-3.2-r1.ebuild |
5 |
Removed: libtrash-3.2.ebuild |
6 |
Log: |
7 |
Revision bump: EAPI 5, respect LDFLAGS, wrt bug #334833, drop old revision. Thanks to Diego Elio Pettenò for discovering this issue |
8 |
|
9 |
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 0x1F357D42) |
10 |
|
11 |
Revision Changes Path |
12 |
1.17 sys-libs/libtrash/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libtrash/ChangeLog?rev=1.17&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libtrash/ChangeLog?rev=1.17&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libtrash/ChangeLog?r1=1.16&r2=1.17 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/libtrash/ChangeLog,v |
21 |
retrieving revision 1.16 |
22 |
retrieving revision 1.17 |
23 |
diff -u -r1.16 -r1.17 |
24 |
--- ChangeLog 25 Feb 2013 20:45:09 -0000 1.16 |
25 |
+++ ChangeLog 25 Feb 2013 21:22:46 -0000 1.17 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sys-libs/libtrash |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libtrash/ChangeLog,v 1.16 2013/02/25 20:45:09 pinkbyte Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libtrash/ChangeLog,v 1.17 2013/02/25 21:22:46 pinkbyte Exp $ |
31 |
+ |
32 |
+*libtrash-3.2-r1 (25 Feb 2013) |
33 |
+ |
34 |
+ 25 Feb 2013; Sergey Popov <pinkbyte@g.o> -libtrash-3.2.ebuild, |
35 |
+ +libtrash-3.2-r1.ebuild, +files/libtrash-3.2-ldflags.patch: |
36 |
+ Revision bump: EAPI 5, respect LDFLAGS, wrt bug #334833, drop old revision. |
37 |
+ Thanks to Diego Elio Pettenò for discovering this issue |
38 |
|
39 |
25 Feb 2013; Sergey Popov <pinkbyte@g.o> |
40 |
files/libtrash-3.2-gentoo.patch: |
41 |
|
42 |
|
43 |
|
44 |
1.1 sys-libs/libtrash/libtrash-3.2-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libtrash/libtrash-3.2-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libtrash/libtrash-3.2-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: libtrash-3.2-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2013 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libtrash/libtrash-3.2-r1.ebuild,v 1.1 2013/02/25 21:22:46 pinkbyte Exp $ |
54 |
|
55 |
EAPI=5 |
56 |
|
57 |
inherit eutils multilib toolchain-funcs |
58 |
|
59 |
DESCRIPTION="Provides a trash can by intercepting certain calls to glibc" |
60 |
HOMEPAGE="http://pages.stern.nyu.edu/~marriaga/software/libtrash/" |
61 |
SRC_URI="http://pages.stern.nyu.edu/~marriaga/software/libtrash/${P}.tgz" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~ppc ~x86" |
66 |
|
67 |
DEPEND="dev-lang/perl" |
68 |
RDEPEND="${DEPEND}" |
69 |
|
70 |
src_unpack() { |
71 |
unpack "${A}" |
72 |
|
73 |
# now let's unpack strash too in cash anyone is interested |
74 |
cd "${S}/cleanTrash" || die "cd failed" |
75 |
unpack ./strash-0.9.tar.gz |
76 |
} |
77 |
|
78 |
src_prepare() { |
79 |
epatch "${FILESDIR}/${P}-gentoo.patch" |
80 |
epatch "${FILESDIR}/${P}-ldflags.patch" # bug 334833 |
81 |
sed -i -e "/^INSTLIBDIR/s:local/lib:$(get_libdir):" src/Makefile || die "sed on Makefile failed" |
82 |
} |
83 |
|
84 |
src_compile() { |
85 |
emake CC="$(tc-getCC)" |
86 |
} |
87 |
|
88 |
src_install() { |
89 |
dodir /etc /usr/$(get_libdir) |
90 |
emake DESTDIR="${D}" install |
91 |
|
92 |
dosbin cleanTrash/ct2.pl |
93 |
exeinto /etc/cron.daily |
94 |
doexe "${FILESDIR}/cleanTrash.cron" |
95 |
|
96 |
dodoc CHANGE.LOG README libtrash.conf TODO config.txt |
97 |
|
98 |
docinto cleanTrash |
99 |
dodoc cleanTrash/README cleanTrash/cleanTrash |
100 |
|
101 |
# new strash installation stuff |
102 |
dosbin cleanTrash/strash-0.9/strash |
103 |
docinto strash |
104 |
dodoc cleanTrash/strash-0.9/README |
105 |
doman cleanTrash/strash-0.9/strash.8 |
106 |
} |
107 |
|
108 |
pkg_postinst() { |
109 |
elog |
110 |
elog "To use this you have to put the trash library as one" |
111 |
elog "of the variables in LD_PRELOAD." |
112 |
elog "Example in bash:" |
113 |
elog "export LD_PRELOAD=/usr/$(get_libdir)/libtrash.so" |
114 |
elog |
115 |
elog "Also, see /etc/cron.daily/cleanTrash.cron if you'd like to turn on" |
116 |
elog "daily trash cleanup." |
117 |
elog |
118 |
} |