|
Lines 1-8
Link Here
|
| 1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2008 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/x11-misc/xnots/xnots-0.2.ebuild,v 1.3 2009/01/08 22:30:26 nelchael Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xnots/xnots-0.2.ebuild,v 1.1 2008/04/10 08:55:51 nelchael Exp $ |
| 4 |
|
4 |
|
| 5 |
EAPI="2" |
5 |
inherit linux-info |
| 6 |
|
6 |
|
| 7 |
DESCRIPTION="A desktop sticky note program for the unix geek" |
7 |
DESCRIPTION="A desktop sticky note program for the unix geek" |
| 8 |
HOMEPAGE="http://xnots.sourceforge.net" |
8 |
HOMEPAGE="http://xnots.sourceforge.net" |
|
Lines 11-25
Link Here
|
| 11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
| 12 |
SLOT="0" |
12 |
SLOT="0" |
| 13 |
KEYWORDS="~amd64 ~x86" |
13 |
KEYWORDS="~amd64 ~x86" |
| 14 |
IUSE="" |
14 |
IUSE="vim-syntax" |
| 15 |
|
15 |
|
| 16 |
RDEPEND="x11-libs/libX11 |
16 |
RDEPEND="x11-libs/libX11 |
| 17 |
x11-libs/libXext |
17 |
x11-libs/libXext |
| 18 |
x11-libs/libXrender |
18 |
x11-libs/libXrender |
|
|
19 |
x11-libs/libXrandr |
| 19 |
x11-libs/pango[X]" |
20 |
x11-libs/pango[X]" |
| 20 |
|
21 |
|
| 21 |
DEPEND="${RDEPEND} |
22 |
DEPEND="${RDEPEND} |
| 22 |
dev-util/pkgconfig" |
23 |
dev-util/pkgconfig |
|
|
24 |
x11-proto/xextproto |
| 25 |
x11-proto/renderproto |
| 26 |
x11-proto/randrproto" |
| 23 |
|
27 |
|
| 24 |
src_compile() { |
28 |
src_compile() { |
| 25 |
NO_DEBUG=1 emake || die |
29 |
NO_DEBUG=1 emake || die |
|
Lines 27-35
Link Here
|
| 27 |
|
31 |
|
| 28 |
src_install() { |
32 |
src_install() { |
| 29 |
emake DESTDIR="${D}" prefix=/usr mandir=/usr/share/man install || die |
33 |
emake DESTDIR="${D}" prefix=/usr mandir=/usr/share/man install || die |
|
|
34 |
if use vim-syntax; then |
| 35 |
insinto /usr/share/vim/vimfiles/syntax |
| 36 |
doins etc/xnots.vim |
| 37 |
fi |
| 30 |
} |
38 |
} |
| 31 |
|
39 |
|
| 32 |
pkg_postinst() { |
40 |
pkg_postinst() { |
| 33 |
elog "xNots requires INOTIFY support present in kernel." |
41 |
if ! linux_chkconfig_present INOTIFY; then |
| 34 |
elog "Please make sure you have enabled CONFIG_INOTIFY in your config." |
42 |
ewarn "Your kernel is compiled without INOTIFY support." |
|
|
43 |
ewarn "xNots requires INOTIFY support to run." |
| 44 |
ewarn "Please enable CONFIG_INOTIFY in your kernel config." |
| 45 |
fi |
| 35 |
} |
46 |
} |