1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="Apps for querying the sg SCSI interface"
9 HOMEPAGE="http://sg.danny.cz/sg/"
10 #SRC_URI="https://github.com/hreinecke/sg3_utils/archive/v${PV}.tar.gz -> ${P}.tar.gz"
11 SRC_URI="http://sg.danny.cz/sg/p/${P}.tar.xz"
15 KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
18 DEPEND="sys-devel/libtool"
19 RDEPEND="!sys-apps/rescan-scsi-bus"
22 "${FILESDIR}"/${PN}-1.26-stdint.patch #580236
26 econf $(use_enable static-libs static)
31 dodoc COVERAGE doc/README examples/*.txt
32 newdoc scripts/README README.scripts
34 # Better fix for bug 231089; some packages look for sgutils2
36 path="/usr/$(get_libdir)"
37 for lib in "${ED%/}/"${path}/libsgutils2.*; do
39 dosym "${lib}" "${path}/${lib/libsgutils2/libsgutils}"
42 find "${ED}" -name "*.la" -delete || die