add ${datadir}/application-registry to FILES_${PN}
authorPhil Blundell <philb@gnu.org>
Sun, 1 Aug 2004 16:28:22 +0000 (16:28 +0000)
committerPhil Blundell <philb@gnu.org>
Sun, 1 Aug 2004 16:28:22 +0000 (16:28 +0000)
BKrev: 410d1a264QgSAY5UypYdmqtlCW0MZQ

classes/gnome.oeclass

index e69de29..b12fcde 100644 (file)
@@ -0,0 +1,21 @@
+def gnome_verdir(v):
+       import re
+       m = re.match("([0-9]+)\.([0-9]+)\..*", v)
+       return "%s.%s" % (m.group(1), m.group(2))
+
+SECTION = "gnome"
+SRC_URI = "${GNOME_MIRROR}/${PN}/${@gnome_verdir("${PV}")}/${PN}-${PV}.tar.bz2"
+
+FILES_${PN} += "${datadir}/application-registry"
+
+inherit autotools pkgconfig
+
+STAGE_TEMP="${WORKDIR}/temp-staging"
+
+gnome_stage_includes() {
+       rm -rf ${STAGE_TEMP}
+       mkdir -p ${STAGE_TEMP}
+       make DESTDIR="${STAGE_TEMP}" install
+       cp -a ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR}
+       rm -rf ${STAGE_TEMP}
+}