Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 828708 | Differences between
and this patch

Collapse All | Expand All

(-)a/molscript-2.1.2-r2.ebuild (-18 / +19 lines)
Lines 1-15 Link Here
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=5
4
EAPI=8
5
5
6
inherit epatch toolchain-funcs
6
inherit toolchain-funcs
7
8
GITHUB_REV="280abee66893162d28cc47c3f1e0cd71214e18a0"
7
9
8
DESCRIPTION="Display 3D molecules (e.g., proteins) in schematic and detailed representations"
10
DESCRIPTION="Display 3D molecules (e.g., proteins) in schematic and detailed representations"
9
HOMEPAGE="http://www.avatar.se/molscript/"
11
HOMEPAGE="https://kraulis.se/MolScript/"
10
SRC_URI="${P}.tar.gz"
12
SRC_URI="https://github.com/pekrau/MolScript/archive/${GITHUB_REV}.zip -> ${P}.zip"
11
13
12
LICENSE="glut molscript"
14
LICENSE="MIT"
13
SLOT="0"
15
SLOT="0"
14
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
16
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
15
IUSE=""
17
IUSE=""
Lines 26-45 Link Here
26
		)"
28
		)"
27
RDEPEND="${DEPEND}"
29
RDEPEND="${DEPEND}"
28
30
29
RESTRICT="fetch"
31
PATCHES=(
32
	"${FILESDIR}"/fix-makefile-shared.patch
33
	"${FILESDIR}"/${PV}-ldflags.patch
34
	"${FILESDIR}"/${PV}-prll.patch
35
	"${FILESDIR}"/${PV}-libpng15.patch
36
)
30
37
31
pkg_nofetch() {
38
S="${WORKDIR}/MolScript-${GITHUB_REV}/code"
32
	elog "Please visit ${HOMEPAGE}"
33
	elog "and get ${A}."
34
	elog "Place it into your DISTDIR directory."
35
}
36
39
37
src_prepare() {
40
src_prepare() {
38
	epatch \
41
	default
39
		"${FILESDIR}"/fix-makefile-shared.patch \
40
		"${FILESDIR}"/${PV}-ldflags.patch \
41
		"${FILESDIR}"/${PV}-prll.patch \
42
		"${FILESDIR}"/${PV}-libpng15.patch
43
42
44
	# Provide glutbitmap.h, because freeglut doesn't have it
43
	# Provide glutbitmap.h, because freeglut doesn't have it
45
	cp "${FILESDIR}"/glutbitmap.h "${S}"/clib/ || die
44
	cp "${FILESDIR}"/glutbitmap.h "${S}"/clib/ || die
Lines 63-67 Link Here
63
62
64
src_install() {
63
src_install() {
65
	dobin molscript molauto
64
	dobin molscript molauto
66
	dohtml "${S}"/doc/*.html
65
	DOCS=( ../docs/*.pdf )
66
	HTML_DOCS=( ../docs/*.html ../docs/images )
67
	einstalldocs
67
}
68
}

Return to bug 828708