blob: cab8cae9f2164ec892bf3114dfed4c6810569cc2 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/luakit/luakit-2012.03.25.ebuild,v 1.2 2012/12/04 11:33:43 wired Exp $
EAPI=4
inherit toolchain-funcs
IUSE="luajit vim-syntax"
if [[ ${PV} == *9999* ]]; then
inherit git-2
EGIT_REPO_URI="git://github.com/mason-larobina/${PN}.git
https://github.com/mason-larobina/${PN}.git"
EGIT_BRANCH="develop"
KEYWORDS=""
SRC_URI=""
else
inherit vcs-snapshot
MY_PV="${PV/_p/-r}"
KEYWORDS="~amd64 ~x86"
SRC_URI="https://github.com/mason-larobina/${PN}/tarball/${MY_PV} -> ${P}.tar.gz"
fi
DESCRIPTION="fast, small, webkit-gtk based micro-browser extensible by lua"
HOMEPAGE="http://mason-larobina.github.com/luakit/"
LICENSE="GPL-3"
SLOT="0"
COMMON_DEPEND="
luajit? ( dev-lang/luajit:2 )
!luajit? ( >=dev-lang/lua-5.1 )
dev-db/sqlite:3
dev-libs/glib:2
dev-libs/libunique:1
net-libs/libsoup:2.4
net-libs/webkit-gtk:2
x11-libs/gtk+:2
"
DEPEND="
virtual/pkgconfig
sys-apps/help2man
${COMMON_DEPEND}
"
RDEPEND="
${COMMON_DEPEND}
dev-lua/luafilesystem
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
"
src_prepare() {
sed -i -e "/^CFLAGS/s/-ggdb//" config.mk || die
}
src_compile() {
myconf="PREFIX=/usr DEVELOPMENT_PATHS=0"
use luajit && myconf+=" USE_LUAJIT=1"
if [[ ${PV} != *9999* ]]; then
myconf+=" VERSION=${PV}"
fi
tc-export CC
emake ${myconf}
}
src_install() {
emake PREFIX="/usr" DESTDIR="${D}" DOCDIR="${D}/usr/share/doc/${PF}" install
if use vim-syntax; then
local t
for t in $(ls "${S}"/extras/vim/); do
insinto /usr/share/vim/vimfiles/"${t}"
doins "${S}"/extras/vim/"${t}"/luakit.vim
done
fi
}
|