summaryrefslogtreecommitdiff
path: root/packages/graphics/exiv2/exiv2-0.17.1.exheres-0
blob: cad29a09eb150742a1779a3dcb69208f9ac31efd (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
# 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.exiv2.org"
DOWNLOADS="http://www.exiv2.org/exiv2-0.17.1.tar.gz"

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

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

DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=( nls "png zlib" 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
}