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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Mar 28 07:58:56 2011 UTC (3 years, 6 months ago) by flameeyes
Branch: MAIN
Changes since 1.2: +5 -4 lines
Version bump to 0.9.0_rc1; update 0.8.8 to use identical content.

(Portage version: 2.2.0_alpha29/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.8.8.ebuild,v 1.2 2011/03/12 14:42:29 ulm Exp $
4
5 EAPI=2
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 [[ -d "${WORKDIR}/patches" ]] && \
36 EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" EPATCH_SOURCE="${WORKDIR}/patches" epatch
37 }
38
39 src_compile() {
40 emake -C docs/schemas -f "${FILESDIR}/Makefile-trang" || die "trang failed"
41 }
42
43 src_test() {
44 # No we don't need tests hereā€¦ trang will take care of checking
45 # the well-formedness of the schema files for us
46 :
47 }
48
49 src_install() {
50 insinto ${SITEETC}/${PN}
51 doins "${FILESDIR}/schemas.xml" docs/schemas/*.rnc || die "install failed"
52 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
53 }

  ViewVC Help
Powered by ViewVC 1.1.20