summaryrefslogtreecommitdiff
path: root/packages/graphics/exiv2/exiv2-0.18.1.exheres-0
blob: f608263527f956440c38b0b16f56e9f133e7f756 (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
42
43
44
45
# Copyright 2008 Bernd Steinhauser <berniyh@exherbo.org>
# Distributed under the terms of the GNU General Public License v2

SUMMARY="Exiv2 is a C++ library and a command line utility to manage image metadata."
HOMEPAGE="http://www.${PN}.org"
DOWNLOADS="${HOMEPAGE}/${PNV}.tar.gz"

LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64 ~ppc64 ~x86"
MYOPTIONS="doc nls xmp"

DEPENDENCIES="
    build:
        dev-util/pkg-config
        doc? (
            app-doc/doxygen
            dev-lang/python:*
            dev-libs/libxslt
            media-gfx/graphviz
        )
        nls? ( sys-devel/gettext )
    build+run:
        xmp? ( dev-libs/expat )
"

DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( nls xmp )

src_compile() {
    default

    if option doc; then
        emake doc
    fi
}

src_install() {
    default

    if option doc; then
        insinto /usr/share/doc/${PNVR}/html
        doins -r "${WORK}"/doc/html/*
    fi
}