aboutsummaryrefslogtreecommitdiff
blob: d117fbc142464f679e4fc9c628bb4a73b28f4486 (plain)
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
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit unpacker wrapper xdg

DESCRIPTION="Software for plasmid mapping, primer design, and restriction site analysis"
HOMEPAGE="https://www.snapgene.com/features"
SRC_URI="snapgene_${PV}_linux.deb"
SNAPGENE_DOWNLOAD="https://www.snapgene.com/local/targets/download.php?os=linux_deb&variant=paid&release=${PV}"
RESTRICT="fetch"

LICENSE="GSL"
SLOT="0"
KEYWORDS="~amd64"

DEPEND=""
# ldd /opt/gslbiotech/snapgene/snapgene
RDEPEND="${DEPEND}
	app-arch/bzip2
	app-arch/xz-utils
	app-crypt/qca[qt6]
	dev-libs/openssl-compat:1.1.1
	dev-qt/qt5compat:6
	dev-qt/qtbase:6[concurrent,gui,network,opengl,sql,widgets,xml]
	dev-qt/qtdeclarative:6
	dev-qt/qtpositioning:6
	dev-qt/qtwebchannel:6
	dev-qt/qtwebengine:6
	media-libs/libglvnd
	media-libs/tiff-compat:4
	sci-libs/htslib:0/3
	sys-devel/gcc
	sys-libs/glibc
	sys-libs/libcxx[libcxxabi]
	sys-libs/libunwind:0/8
	x11-libs/libX11
	x11-libs/libXau
	x11-libs/libXdmcp
	x11-libs/libxcb
"
BDEPEND=">=dev-util/patchelf-0.10"

S="${WORKDIR}"
QA_PREBUILT="*"

pkg_nofetch() {
	elog "Please download ${SRC_URI} from"
	elog "${SNAPGENE_DOWNLOAD}"
	elog "and place it into your DISTDIR directory."
}

src_install() {
	patchelf --replace-needed libunwind.so.1 libunwind.so.8 \
		opt/gslbiotech/snapgene/snapgene || die

	mv usr/share/doc/snapgene usr/share/doc/${PF} || die
	gzip -d usr/share/doc/${PF}/changelog.Debian.gz || die

	insinto /
	doins -r *

	fperms +x /opt/gslbiotech/snapgene/snapgene{,.sh}
	make_wrapper ${PN} ./snapgene.sh /opt/gslbiotech/snapgene/
}