blob: 415cc760e37574a60d6c6b95e5ec247fee07d9b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/notecase/notecase-1.9.8.ebuild,v 1.5 2012/05/04 03:33:17 jdhore Exp $
EAPI="1"
inherit eutils fdo-mime
DESCRIPTION="Hierarchical note manager written using GTK+ and C++"
HOMEPAGE="http://notecase.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}_src.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="gnome nls"
RDEPEND=">=x11-libs/gtk+-2.6:2"
DEPEND="${RDEPEND}
virtual/pkgconfig"
# test doesn't work
RESTRICT="test"
MAKEOPTS="${MAKEOPTS} -j1"
src_unpack() {
unpack ${A}
cd "${S}"
# Respect CFLAGS and don't use --as-needed by default
epatch "${FILESDIR}/notecase-1.7.2-CFLAGS.patch"
epatch "${FILESDIR}"/${P}-gcc44.patch
epatch "${FILESDIR}"/${P}-gtksourceview.patch
if ! use gnome; then
# Comment variable in the Makefile if we don't have gnome
sed -i -e 's/HAVE_GNOME_VFS=1/#HAVE_GNOME_VFS=1/g' \
-e 's/AUTODETECT_GNOME_VFS=1/#AUTODETECT_GNOME_VFS=1/g' \
Makefile || die "gnome sed failed"
fi
! use nls && {
sed -i -e 's/notecase$(EXE) poinstall/notecase$(EXE)/g' \
Makefile || die "nls sed failed"
}
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc readme.txt
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
|