/[gentoo-x86]/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.9.7.ebuild
Gentoo

Contents of /app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.9.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Mar 19 18:27:43 2012 UTC (2 years, 9 months ago) by ulm
Branch: MAIN
Version bump.

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.9.0_rc1.ebuild,v 1.1 2011/03/28 07:58:56 flameeyes Exp $
4
5 EAPI=4
6
7 #BACKPORTS=
8 NEED_EMACS=23
9
10 inherit elisp eutils
11
12 MY_P="libvirt-${PV/_rc/-rc}"
13
14 DESCRIPTION="Extension for nxml-mode with libvirt schemas"
15 HOMEPAGE="http://www.libvirt.org/"
16 SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
17 ${BACKPORTS:+mirror://gentoo/${MY_P}-backports-${BACKPORTS}.tar.bz2}"
18
19 # This is the license of the package, but the schema files are
20 # provided without license, maybe it's bad.
21 LICENSE="LGPL-2.1"
22 SLOT="0"
23 KEYWORDS="~amd64 ~x86"
24 IUSE=""
25
26 # Yes this requires Java, but I'd rather not repackage this, if you
27 # know something better in C, I'll be glad to use that.
28 DEPEND="app-text/trang"
29 RDEPEND=""
30
31 SITEFILE="60${PN}-gentoo.el"
32 S="${WORKDIR}/${MY_P%-rc*}"
33
34 src_prepare() {
35 if [[ -d "${WORKDIR}/patches" ]]; then
36 EPATCH_SUFFIX="patch" \
37 EPATCH_FORCE="yes" \
38 EPATCH_SOURCE="${WORKDIR}/patches" \
39 epatch
40 fi
41 }
42
43 src_compile() {
44 emake -C docs/schemas -f "${FILESDIR}/Makefile-trang"
45 }
46
47 src_test() {
48 # No we don't need tests here... trang will take care of checking
49 # the well-formedness of the schema files for us
50 :
51 }
52
53 src_install() {
54 insinto ${SITEETC}/${PN}
55 doins "${FILESDIR}/schemas.xml" docs/schemas/*.rnc
56 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
57 }

  ViewVC Help
Powered by ViewVC 1.1.20