Lines 2-7
Link Here
|
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/app-text/namazu/namazu-2.0.17.ebuild,v 1.2 2007/08/25 15:28:30 hattya Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-text/namazu/namazu-2.0.17.ebuild,v 1.2 2007/08/25 15:28:30 hattya Exp $ |
4 |
|
4 |
|
|
|
5 |
inherit elisp-common |
6 |
|
5 |
IUSE="chasen cjk emacs kakasi nls tk" |
7 |
IUSE="chasen cjk emacs kakasi nls tk" |
6 |
|
8 |
|
7 |
DESCRIPTION="Namazu is a full-text search engine" |
9 |
DESCRIPTION="Namazu is a full-text search engine" |
Lines 15-20
Link Here
|
15 |
DEPEND=">=dev-perl/File-MMagic-1.20 |
17 |
DEPEND=">=dev-perl/File-MMagic-1.20 |
16 |
chasen? ( app-text/chasen ) |
18 |
chasen? ( app-text/chasen ) |
17 |
cjk? ( app-i18n/nkf ) |
19 |
cjk? ( app-i18n/nkf ) |
|
|
20 |
emacs? ( virtual/emacs ) |
18 |
kakasi? ( dev-perl/Text-Kakasi ) |
21 |
kakasi? ( dev-perl/Text-Kakasi ) |
19 |
nls? ( sys-devel/gettext ) |
22 |
nls? ( sys-devel/gettext ) |
20 |
tk? ( |
23 |
tk? ( |
Lines 22-27
Link Here
|
22 |
www-client/lynx |
25 |
www-client/lynx |
23 |
)" |
26 |
)" |
24 |
|
27 |
|
|
|
28 |
SITEFILE=50${PN}-gentoo.el |
29 |
|
25 |
src_unpack() { |
30 |
src_unpack() { |
26 |
|
31 |
|
27 |
unpack ${A} |
32 |
unpack ${A} |
Lines 46-51
Link Here
|
46 |
|| die |
51 |
|| die |
47 |
emake || die |
52 |
emake || die |
48 |
|
53 |
|
|
|
54 |
if use emacs; then |
55 |
cd lisp |
56 |
elisp-comp {namazu,gnus-nmz-1}.el || die "elisp-comp failed" |
57 |
fi |
49 |
} |
58 |
} |
50 |
|
59 |
|
51 |
src_install () { |
60 |
src_install () { |
Lines 61-71
Link Here
|
61 |
doins etc/*.png |
70 |
doins etc/*.png |
62 |
|
71 |
|
63 |
if use emacs; then |
72 |
if use emacs; then |
|
|
73 |
elisp-install ${PN} lisp/{namazu,gnus-nmz-1}.el{,c} \ |
74 |
|| die "elisp-install failed" |
75 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ |
76 |
|| die "elisp-site-file-install failed" |
77 |
|
64 |
docinto lisp |
78 |
docinto lisp |
65 |
dodoc lisp/ChangeLog* |
79 |
dodoc lisp/ChangeLog* |
66 |
|
|
|
67 |
insinto /usr/share/${PN}/lisp |
68 |
doins lisp/*.el |
69 |
fi |
80 |
fi |
70 |
|
81 |
|
71 |
} |
82 |
} |
|
|
83 |
pkg_postinst() { |
84 |
use emacs && elisp-site-regen |
85 |
} |
86 |
|
87 |
pkg_postrm() { |
88 |
use emacs && elisp-site-regen |
89 |
} |