You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.2 KiB
103 lines
2.2 KiB
2 years ago
|
# Copyright 1999-2022 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
2 years ago
|
EAPI=8
|
||
|
inherit desktop toolchain-funcs
|
||
10 years ago
|
|
||
|
MY_PV="${PV/_p/.}.0"
|
||
|
MY_P="${PN}-${MY_PV}"
|
||
|
|
||
|
DESCRIPTION="Publication-quality molecular visualization package"
|
||
5 years ago
|
|
||
|
# Original page dead
|
||
|
#HOMEPAGE="http://hugin.ethz.ch/wuthrich/software/molmol/index.html"
|
||
|
HOMEPAGE="
|
||
|
http://www.csb.yale.edu/userguides/graphics/molmol/molmol_descrip.html
|
||
|
http://pjf.net/science/molmol.html
|
||
|
"
|
||
10 years ago
|
SRC_URI="
|
||
|
ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-src.tar.gz
|
||
7 years ago
|
ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-doc.tar.gz
|
||
5 years ago
|
https://dev.gentoo.org/~soap/distfiles/${PN}-patches.tbz2
|
||
2 years ago
|
https://dev.gentoo.org/~pacho/${PN}/${PN}_256.png
|
||
5 years ago
|
"
|
||
10 years ago
|
|
||
|
LICENSE="molmol"
|
||
|
SLOT="0"
|
||
3 years ago
|
KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
|
||
10 years ago
|
IUSE=""
|
||
|
|
||
5 years ago
|
RDEPEND="
|
||
10 years ago
|
|| (
|
||
2 years ago
|
(
|
||
|
media-libs/mesa[X(+)]
|
||
|
x11-libs/libGLw
|
||
|
)
|
||
|
media-libs/mesa[motif(-),X(+)]
|
||
|
)
|
||
|
media-libs/libjpeg-turbo:=
|
||
2 years ago
|
media-libs/libpng:=
|
||
|
media-libs/tiff:=
|
||
10 years ago
|
sys-libs/zlib
|
||
|
virtual/glu
|
||
|
x11-libs/libXpm
|
||
|
x11-libs/motif:0
|
||
5 years ago
|
x11-apps/xdpyinfo
|
||
|
"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
BDEPEND=""
|
||
10 years ago
|
|
||
|
S="${WORKDIR}"
|
||
|
|
||
|
pkg_setup() {
|
||
|
MMDIR="/usr/$(get_libdir)/molmol"
|
||
2 years ago
|
MAKEOPTS="${MAKEOPTS} -j1" #880621
|
||
10 years ago
|
}
|
||
|
|
||
|
src_prepare() {
|
||
5 years ago
|
default
|
||
|
|
||
10 years ago
|
rm -rf tiff*
|
||
|
# Patch from http://pjf.net/science/molmol.html, where src.rpm is provided
|
||
5 years ago
|
eapply "${WORKDIR}"/patches/pjf_RH9_molmol2k2.diff
|
||
10 years ago
|
|
||
5 years ago
|
eapply "${WORKDIR}"/patches/ldflags.patch
|
||
|
eapply "${WORKDIR}"/patches/opengl.patch
|
||
10 years ago
|
|
||
|
ln -s makedef.lnx "${S}"/makedef || die
|
||
|
|
||
|
sed \
|
||
2 years ago
|
-e "s|ksh|sh|" \
|
||
|
-e "s|^MOLMOLHOME.*|MOLMOLHOME=${EPREFIX}/${MMDIR};MOLMOLDEV=\"Motif/OpenGL\"|" \
|
||
10 years ago
|
-i "${S}"/molmol || die
|
||
|
sed \
|
||
2 years ago
|
-e "s|^MCFLAGS.*|MCFLAGS = ${CFLAGS}|" \
|
||
|
-e "s|^CC.*|CC = $(tc-getCC)|" \
|
||
10 years ago
|
-i "${S}"/makedef || die
|
||
|
|
||
5 years ago
|
eapply "${WORKDIR}"/patches/cast.patch
|
||
|
eapply -p0 "${WORKDIR}"/patches/libpng15.patch
|
||
10 years ago
|
|
||
|
# patch from fink
|
||
|
# fixes numerous bad bracings and hopefully the OGL bug 429974
|
||
5 years ago
|
eapply "${WORKDIR}"/patches/${P}-fink.patch
|
||
10 years ago
|
|
||
5 years ago
|
eapply "${WORKDIR}"/patches/wild.patch
|
||
10 years ago
|
tc-export AR
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin molmol
|
||
|
|
||
|
exeinto ${MMDIR}
|
||
|
doexe src/main/molmol
|
||
|
insinto ${MMDIR}
|
||
|
doins -r auxil help macros man setup tips
|
||
|
|
||
2 years ago
|
make_desktop_entry "${PN}" MOLMOL
|
||
|
newicon "${DISTDIR}/${PN}_256.png" "${PN}.png"
|
||
5 years ago
|
|
||
|
einstalldocs
|
||
|
dodoc HISTORY
|
||
10 years ago
|
}
|