2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2014 Alexander Pyhalov. All rights reserved.
14 # Copyright 2018 Michal Nowak
17 USE_DEFAULT_TEST_TRANSFORMS
= yes
18 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_NAME
= system-config-printer
21 HUMAN_VERSION
= 1.5.18
22 COMPONENT_VERSION
= 2.30.0
23 COMPONENT_REVISION
= 7
24 COMPONENT_FMRI
= print/cups
/system-config-printer
25 COMPONENT_SUMMARY
= Print Manager for CUPS
26 COMPONENT_CLASSIFICATION
= System
/Administration and Configuration
27 COMPONENT_PROJECT_URL
= https
://github.com
/OpenPrinting
/system-config-printer
28 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(HUMAN_VERSION
)
29 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
30 COMPONENT_ARCHIVE_HASH
= sha256
:b1a69e1b4ec2add569a87aeca811a37c5361ee6ae327ec852b79e64223e34bee
31 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/releases
/download
/v
$(HUMAN_VERSION
)/$(COMPONENT_ARCHIVE
)
32 COMPONENT_LICENSE
= GPL-2.0
-only
33 COMPONENT_LICENSE_FILE
= COPYING
35 include $(WS_MAKE_RULES
)/common.mk
37 CONFIGURE_ENV
+= PYTHON
=$(PYTHON
)
38 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
40 # Fix shebang for Python scripts
41 PYTHON_SCRIPTS
+= $(USRSHAREDIR
)/system-config-printer
/applet.py
44 COMPONENT_POST_INSTALL_ACTION
+= \
45 $(MKDIR
) $(PROTOUSRLIBDIR
)/system-config-printer
; \
46 $(MV
) $(PROTOUSRBINDIR
)/system-config-printer-applet
$(PROTOUSRLIBDIR
)/system-config-printer
; \
47 $(GSED
) -i
-e
's?\/usr\/bin\/python3?\/usr\/bin\/python$(PYTHON_VERSION)?' $(PROTO_DIR
)/usr
/share
/system-config-printer
/system-config-printer.py
;
49 # Remove pyc files we do not want to distribute
50 COMPONENT_POST_INSTALL_ACTION
+= \
51 $(RM
) -r
$(PROTOUSRSHAREDIR
)/system-config-printer
/__pycache__
54 REQUIRED_PACKAGES
+= text
/xmlto
56 # Auto-generated dependencies
57 PYTHON_REQUIRED_PACKAGES
+= library
/python
/pycups
58 PYTHON_REQUIRED_PACKAGES
+= library
/python
/pygobject-3
59 PYTHON_REQUIRED_PACKAGES
+= library
/python
/python-dbus
60 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
61 REQUIRED_PACKAGES
+= shell/ksh93