You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-emacs/nxml-libvirt-schemas/nxml-libvirt-schemas-0.9.0_...

54 lines
1.5 KiB

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $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 $
EAPI=2
#BACKPORTS=
NEED_EMACS=23
inherit elisp eutils
MY_P="libvirt-${PV/_rc/-rc}"
DESCRIPTION="Extension for nxml-mode with libvirt schemas"
HOMEPAGE="http://www.libvirt.org/"
SRC_URI="http://libvirt.org/sources/${MY_P}.tar.gz
${BACKPORTS:+mirror://gentoo/${MY_P}-backports-${BACKPORTS}.tar.bz2}"
# This is the license of the package, but the schema files are
# provided without license, maybe it's bad.
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
# Yes this requires Java, but I'd rather not repackage this, if you
# know something better in C, I'll be glad to use that.
DEPEND="app-text/trang"
RDEPEND=""
SITEFILE=60${PN}-gentoo.el
S="${WORKDIR}/${MY_P%-rc*}"
src_prepare() {
[[ -d "${WORKDIR}/patches" ]] && \
EPATCH_SUFFIX="patch" EPATCH_FORCE="yes" EPATCH_SOURCE="${WORKDIR}/patches" epatch
}
src_compile() {
emake -C docs/schemas -f "${FILESDIR}/Makefile-trang" || die "trang failed"
}
src_test() {
# No we don't need tests here… trang will take care of checking
# the well-formedness of the schema files for us
:
}
src_install() {
insinto ${SITEETC}/${PN}
doins "${FILESDIR}/schemas.xml" docs/schemas/*.rnc || die "install failed"
elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die
}