summaryrefslogtreecommitdiff
blob: de1fbfc4d0141ff6a7972452234ed117dd76feb7 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="4"

inherit webapp versionator eutils

MY_P="jquery-ui-${PV}"

DESCRIPTION="An UI library for jQuery"
HOMEPAGE="http://jqueryui.com/"
SRC_URI="http://jqueryui.com/download/${MY_P}.custom.zip"

LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

S="${WORKDIR}"

src_unpack() {
	unpack "${MY_P}.custom.zip"
	ln -s "${MY_P}.custom.min.js" "js/${PN}.min.js"
	ln -s "${MY_P}.custom.css" "css/smoothness/${PN}.css"
}

src_install() {
	webapp_src_preinst
	webapp_src_install
	insinto "${MY_HTDOCSDIR}"
	doins "js/${MY_P}.custom.min.js" "js/${PN}.min.js"
	doins "css/smoothness/${MY_P}.custom.css" "css/smoothness/${PN}.css"
}

pkg_setup() {
	webapp_pkg_setup
}

pkg_postinst() {
	webapp_pkg_postinst
}