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

inherit fdo-mime

DESCRIPTION="A collection of data files to add support for chemical MIME types."
HOMEPAGE="http://chemical-mime.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN/-data/}/${P}.tar.bz2"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND="dev-util/pkgconfig
		x11-misc/shared-mime-info
		dev-util/intltool
		dev-util/desktop-file-utils"
RDEPEND=""


src_compile() {
	econf --disable-update-database --htmldir=/usr/share/doc/${PN}/html
	emake || die "make failed"
}

src_install() {
	make DESTDIR=${D} install

#	Avoid collisions.
#	rm -rf ${D}/usr/share/mime/XMLnamespaces ${D}/usr/share/mime/magic \
#	${D}/usr/share/mime/subclasses ${D}/usr/share/mime/mime.cache \
#	${D}/usr/share/mime/aliases ${D}/usr/share/mime/globs

}

pkg_postinst() {
	fdo-mime_desktop_database_update
	fdo-mime_mime_database_update
}