summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Heiko Becker <heirecka@exherbo.org> 2017-10-02 22:14:06 +0200
committerAvatar Heiko Becker <heirecka@exherbo.org> 2017-10-03 11:28:32 +0200
commit57d706c8291ada3179fd58e03b22cbd6b04a0c4b (patch)
treed6947244c34c9a3edd32d82d0e266e52b5929771
parent6a21ef3a841d71bb8f7b9c859f96e4d91abf82e9 (diff)
downloadmedia-57d706c8291ada3179fd58e03b22cbd6b04a0c4b.tar.gz
media-57d706c8291ada3179fd58e03b22cbd6b04a0c4b.tar.xz
qrencode: Slot it
-rw-r--r--packages/media-libs/qrencode/qrencode-3.4.4-r1.exheres-0 (renamed from packages/media-libs/qrencode/qrencode-3.4.4.exheres-0)1
-rw-r--r--packages/media-libs/qrencode/qrencode.exlib24
2 files changed, 23 insertions, 2 deletions
diff --git a/packages/media-libs/qrencode/qrencode-3.4.4.exheres-0 b/packages/media-libs/qrencode/qrencode-3.4.4-r1.exheres-0
index ded1cb8..f9935d0 100644
--- a/packages/media-libs/qrencode/qrencode-3.4.4.exheres-0
+++ b/packages/media-libs/qrencode/qrencode-3.4.4-r1.exheres-0
@@ -3,6 +3,7 @@
require qrencode
+SLOT="0"
PLATFORMS="~amd64"
DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/${PN}-3.4.3-Avoid-to-use-sdl-config.patch )
diff --git a/packages/media-libs/qrencode/qrencode.exlib b/packages/media-libs/qrencode/qrencode.exlib
index 0325ebe..6b2481f 100644
--- a/packages/media-libs/qrencode/qrencode.exlib
+++ b/packages/media-libs/qrencode/qrencode.exlib
@@ -1,7 +1,8 @@
-# Copyright 2013-2015 Heiko Becker <heirecka@exherbo.org>
+# Copyright 2013-2017 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 alternatives
export_exlib_phases src_compile src_test src_install
@@ -12,7 +13,6 @@ HOMEPAGE="http://fukuchi.org/works/${PN}"
DOWNLOADS="${HOMEPAGE}/${PNV}.tar.bz2"
LICENCES="LGPL-2.1"
-SLOT="0"
MYOPTIONS="
doc
"
@@ -25,6 +25,11 @@ DEPENDENCIES="
media-libs/libpng:= [[ description = [ needed for tools and tests ] ]]
test:
media-libs/SDL:0[>=1.2.0]
+ run:
+ !media-libs/qrencode:0[<3.4.4-r1] [[
+ description = [ Alternatives conflict ]
+ resolution = upgrade-blocked-before
+ ]]
"
BUGS_TO="heirecka@exherbo.org"
@@ -44,8 +49,23 @@ qrencode_src_test() {
}
qrencode_src_install() {
+ local alternatives=()
+ local host=$(exhost --target)
+
default
option doc && dodoc -r html
+
+ alternatives+=(
+ /usr/share/man/man1/${PN}.1 ${PN}-${SLOT}.1
+ /usr/${host}/bin/${PN} ${PN}-${SLOT}
+ /usr/${host}/include/${PN}.h ${PN}-${SLOT}.h
+ /usr/${host}/lib/lib${PN}.la lib${PN}-${SLOT}.la
+ /usr/${host}/lib/lib${PN}.so lib${PN}-${SLOT}.so
+ /usr/${host}/lib/pkgconfig/lib${PN}.pc lib${PN}-${SLOT}.pc
+ )
+
+ alternatives_for _${PN} ${SLOT} ${SLOT} "${alternatives[@]}"
+
}