Marcel Telka
2022-08-23 cfb9319aeb57b9935660c6a1db61e4871fff1b90
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL)". You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2021 Gary Mills
# Copyright 2016 Alexander Pyhalov
#
 
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=        gtk-doc
COMPONENT_MAJOR_VERSION=        1.33
COMPONENT_MINOR_VERSION=        2
COMPONENT_VERSION=      $(COMPONENT_MAJOR_VERSION).$(COMPONENT_MINOR_VERSION)
COMPONENT_REVISION=    3
COMPONENT_PROJECT_URL=    http://www.gtk.org/gtk-doc/
COMPONENT_SUMMARY=    GTK+ DocBook Documentation Generator
COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.xz
COMPONENT_ARCHIVE_HASH=    \
    sha256:cc1b709a20eb030a278a1f9842a362e00402b7f834ae1df4c1998a723152bf43
COMPONENT_ARCHIVE_URL=    https://download.gnome.org/sources/$(COMPONENT_NAME)/$(COMPONENT_MAJOR_VERSION)/$(COMPONENT_ARCHIVE)
 
# Set python version used by this product
PYTHON_VERSION=        3.7
 
# The built-in tests assume the package has already been installed
TEST_TARGET=        $(NO_TESTS)
 
include $(WS_MAKE_RULES)/common.mk
 
PATH=$(PATH.gnu)
 
# Build configure script
COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv)
 
# pkgdepend doesn't like the first line of a Python script to be:
# '#!/usr/bin/env python3' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
#
COMPONENT_POST_INSTALL_ACTION += \
    $(GSED) -i -e 's?env python3?python$(PYTHON_VERSION)?' \
        $(PROTOUSRSHAREDIR)/gtk-doc/python/gtkdoc/highlight.py;
COMPONENT_POST_INSTALL_ACTION += \
    $(GSED) -i -e 's?env python3?python$(PYTHON_VERSION)?' \
        $(PROTOUSRSHAREDIR)/gtk-doc/python/gtkdoc/mkhtml2.py;
 
CONFIGURE_OPTIONS+=    --bindir=$(USRBINDIR)
CONFIGURE_OPTIONS+=    --sbindir=$(USRSBINDIR)
CONFIGURE_OPTIONS+=    --sysconfdir=$(ETCDIR)
CONFIGURE_ENV+=        PYTHON=$(PYTHON)
 
# Manually added dependencies
REQUIRED_PACKAGES += SUNWcs
REQUIRED_PACKAGES += text/itstool
REQUIRED_PACKAGES += runtime/python-37
REQUIRED_PACKAGES += library/python/pygments-37
 
# Auto-generated dependencies