summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2017-10-02 22:02:46 +0200
committerAvatar Heiko Becker <heirecka@exherbo.org> 2017-10-03 11:28:32 +0200
commit6a21ef3a841d71bb8f7b9c859f96e4d91abf82e9 (patch)
tree3d99cfb39add527a53efc21fda03888b2cab6c1c
parent771b9149c8174b35608a418e03efbf64ff801314 (diff)
downloadmedia-6a21ef3a841d71bb8f7b9c859f96e4d91abf82e9.tar.gz
media-6a21ef3a841d71bb8f7b9c859f96e4d91abf82e9.tar.xz
qrencode: Exlibify
-rw-r--r--packages/media-libs/qrencode/qrencode-3.4.4.exheres-044
-rw-r--r--packages/media-libs/qrencode/qrencode.exlib51
2 files changed, 52 insertions, 43 deletions
diff --git a/packages/media-libs/qrencode/qrencode-3.4.4.exheres-0 b/packages/media-libs/qrencode/qrencode-3.4.4.exheres-0
index 12ef729..ded1cb8 100644
--- a/packages/media-libs/qrencode/qrencode-3.4.4.exheres-0
+++ b/packages/media-libs/qrencode/qrencode-3.4.4.exheres-0
@@ -1,51 +1,9 @@
# Copyright 2013-2015 Heiko Becker <heirecka@exherbo.org>
# Distributed under the terms of the GNU General Public License v2
-require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 1.13 ] ]
+require qrencode
-SUMMARY="C library for encoding data in a QR code symbol"
-DESCRIPTION="QR codes are a kind of 2D symbology that can be scanned by handy terminals such as a
-mobile phone with CCD. The capacity of QR Code is up to 7000 digits or 4000 characters."
-HOMEPAGE="http://fukuchi.org/works/${PN}"
-DOWNLOADS="${HOMEPAGE}/${PNV}.tar.bz2"
-
-LICENCES="LGPL-2.1"
-SLOT="0"
PLATFORMS="~amd64"
-MYOPTIONS="
- doc
-"
-
-DEPENDENCIES="
- build:
- virtual/pkg-config[>=0.9.0]
- doc? ( app-doc/doxygen )
- build+run:
- media-libs/libpng:= [[ description = [ needed for tools and tests ] ]]
- test:
- media-libs/SDL:0[>=1.2.0]
-"
-
-BUGS_TO="heirecka@exherbo.org"
DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/${PN}-3.4.3-Avoid-to-use-sdl-config.patch )
-DEFAULT_SRC_CONFIGURE_TESTS=( --with-tests )
-
-src_compile() {
- default
-
- option doc && edo doxygen "${WORK}"/Doxyfile
-}
-
-src_test() {
- edo pushd tests
- edo sh "${WORK}"/tests/test_all.sh
- edo popd
-}
-
-src_install() {
- default
-
- option doc && dodoc -r html
-}
diff --git a/packages/media-libs/qrencode/qrencode.exlib b/packages/media-libs/qrencode/qrencode.exlib
new file mode 100644
index 0000000..0325ebe
--- /dev/null
+++ b/packages/media-libs/qrencode/qrencode.exlib
@@ -0,0 +1,51 @@
+# Copyright 2013-2015 Heiko Becker <heirecka@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 1.13 ] ]
+
+export_exlib_phases src_compile src_test src_install
+
+SUMMARY="C library for encoding data in a QR code symbol"
+DESCRIPTION="QR codes are a kind of 2D symbology that can be scanned by handy terminals such as a
+mobile phone with CCD. The capacity of QR Code is up to 7000 digits or 4000 characters."
+HOMEPAGE="http://fukuchi.org/works/${PN}"
+DOWNLOADS="${HOMEPAGE}/${PNV}.tar.bz2"
+
+LICENCES="LGPL-2.1"
+SLOT="0"
+MYOPTIONS="
+ doc
+"
+
+DEPENDENCIES="
+ build:
+ virtual/pkg-config[>=0.9.0]
+ doc? ( app-doc/doxygen )
+ build+run:
+ media-libs/libpng:= [[ description = [ needed for tools and tests ] ]]
+ test:
+ media-libs/SDL:0[>=1.2.0]
+"
+
+BUGS_TO="heirecka@exherbo.org"
+
+DEFAULT_SRC_CONFIGURE_TESTS=( --with-tests )
+
+qrencode_src_compile() {
+ default
+
+ option doc && edo doxygen "${WORK}"/Doxyfile
+}
+
+qrencode_src_test() {
+ edo pushd tests
+ edo sh "${WORK}"/tests/test_all.sh
+ edo popd
+}
+
+qrencode_src_install() {
+ default
+
+ option doc && dodoc -r html
+}
+