public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/modeller/
@ 2018-06-08 13:01 Alexey Shvetsov
  0 siblings, 0 replies; 7+ messages in thread
From: Alexey Shvetsov @ 2018-06-08 13:01 UTC (permalink / raw
  To: gentoo-commits

commit:     5ab7460b5a2261accb020f387220e20e0b5ce49d
Author:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  8 13:01:42 2018 +0000
Commit:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Fri Jun  8 13:01:42 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ab7460b

sci-chemistry/modeller: Import from science overlay

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 sci-chemistry/modeller/Manifest             |   1 +
 sci-chemistry/modeller/metadata.xml         |   8 ++
 sci-chemistry/modeller/modeller-9.20.ebuild | 145 ++++++++++++++++++++++++++++
 3 files changed, 154 insertions(+)

diff --git a/sci-chemistry/modeller/Manifest b/sci-chemistry/modeller/Manifest
new file mode 100644
index 00000000000..0674ee130c5
--- /dev/null
+++ b/sci-chemistry/modeller/Manifest
@@ -0,0 +1 @@
+DIST modeller-9.20.tar.gz 34909796 BLAKE2B d89c81823c4d7784a7b3d64fdb01158a973edc7d8b316c773e038ba8645797c543d5bc58c1bff5462ae5975a6c2796f4b2d500641d226c3b2281cf794cfeba8d SHA512 667edeeda0a9038258f6932b3cef22a1e9d0fe47f47bd2ac612e7bac7f23a863f5a65cfd93abfa405310e7fb7b305d53e71d6c6e930613b0dbd43b24dcd5919a

diff --git a/sci-chemistry/modeller/metadata.xml b/sci-chemistry/modeller/metadata.xml
new file mode 100644
index 00000000000..da36ecbfcd6
--- /dev/null
+++ b/sci-chemistry/modeller/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>sci-chemistry@gentoo.org</email>
+		<name>Gentoo Chemistry Project</name>
+	</maintainer>
+</pkgmetadata>

diff --git a/sci-chemistry/modeller/modeller-9.20.ebuild b/sci-chemistry/modeller/modeller-9.20.ebuild
new file mode 100644
index 00000000000..0d29c3843f2
--- /dev/null
+++ b/sci-chemistry/modeller/modeller-9.20.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils multilib versionator
+
+DESCRIPTION="Homology or comparative modeling of protein three-dimensional structures"
+HOMEPAGE="http://salilab.org/modeller/"
+SRC_URI="http://salilab.org/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="modeller"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+SLOT="0"
+
+RESTRICT="mirror"
+
+DEPEND=">=dev-lang/swig-1.3"
+RDEPEND=""
+
+INPATH="${EPREFIX}"/opt/modeller${ver}
+
+QA_PREBUILT="/opt/*"
+
+pkg_setup() {
+	case ${ARCH} in
+		x86)
+			EXECTYPE="i386-intel8";;
+		amd64)
+			EXECTYPE="x86_64-intel8";;
+		*)
+			die "Your arch "${ARCH}" does not appear supported at this time.";;
+	esac
+}
+
+python_prepare_all(){
+	sed "s:i386-intel8:${EXECTYPE}:g" -i src/swig/setup.py || die
+	distutils-r1_python_prepare_all
+}
+
+python_compile(){
+	cd src/swig || die
+	swig -python -keyword -nodefaultctor -nodefaultdtor -noproxy modeller.i || die
+	distutils-r1_python_compile
+}
+
+python_install() {
+	cd src/swig || die
+	distutils-r1_python_install
+}
+
+python_install_all(){
+	cd "${S}" || die
+	sed \
+		-e "/^EXECUTABLE_TYPE/s:xxx:${EXECTYPE}:g" \
+		-e "/MODINSTALL/s:xxx:\"${INPATH}\":g" \
+		-i bin/modscript || die
+
+	sed -e "s;@TOPDIR\@;\"${INPATH}\";" \
+		-e "s;@EXETYPE\@;${EXECTYPE};" \
+		bin/modpy.sh.in > "${T}/modpy.sh"
+
+	insinto ${INPATH}
+	doins -r modlib
+	python_foreach_impl python_domodule modlib/modeller
+
+	insinto ${INPATH}/bin
+	doins -r bin/{lib,*top}
+
+	exeinto ${INPATH}/bin
+	doexe bin/{modscript,mod${PV}_${EXECTYPE}} "${T}"/modpy.sh
+
+	python_foreach_impl python_doscript bin/modslave.py
+	dosym ${INPATH}/bin/modscript /opt/bin/mod${PV}
+	dosym ${INPATH}/bin/modpy.sh /opt/bin/modpy.sh
+
+	exeinto ${INPATH}/lib/${EXECTYPE}/
+	doexe lib/${EXECTYPE}/lib*
+	dosym libmodeller.so.8 ${INPATH}/lib/${EXECTYPE}/libmodeller.so
+	dosym ../../${INPATH}/lib/${EXECTYPE}/libmodeller.so.8 /usr/$(get_libdir)/libmodeller.so.8
+
+	use doc && HTML_DOCS=( doc/. )
+	distutils-r1_python_install_all
+
+	if use examples; then
+		insinto /usr/share/${PN}/
+		doins -r examples
+	fi
+
+	insinto /etc/revdep-rebuild
+	cat >> "${T}"/40-${PN} <<- EOF
+	SEARCH_DIRS_MASK="${EPREFIX}/opt/modeller/lib/"
+	EOF
+	doins "${T}"/40-${PN}
+}
+
+pkg_postinst() {
+	if [[ ! -e "${INPATH}/modlib/modeller/config.py" ]]; then
+		echo install_dir = \"${INPATH}/\"> ${INPATH}/modlib/modeller/config.py
+	fi
+
+	if grep -q license ${INPATH}/modlib/modeller/config.py; then
+		einfo "A license key file is already present in ${IN_PATH}/modlib/modeller/config.py"
+	else
+		ewarn "Obtain a license Key from"
+		ewarn "http://salilab.org/modeller/registration.html"
+		ewarn "And run this before using modeller:"
+		ewarn "emerge --config =${CATEGORY}/${PF}"
+		ewarn "That way you can [re]enter your license key."
+	fi
+}
+
+pkg_postrm() {
+	ewarn "This package leaves a license Key file in ${INPATH}/modlib/modeller/config.py"
+	ewarn "that you need to remove to completely get rid of modeller."
+}
+
+pkg_config() {
+	ewarn "Your license key is NOT checked for validity here."
+	ewarn "  Make sure you type it in correctly."
+	eerror "If you CTRL+C out of this, modeller will not run!"
+	while true
+	do
+		einfo "Please enter your license key:"
+		read license_key1
+		einfo "Please re-enter your license key:"
+		read license_key2
+		if [[ "$license_key1" == "" ]]
+		then
+			echo "You entered a blank license key.  Try again."
+		else
+			if [[ "$license_key1" == "$license_key2" ]]
+			then
+				echo license = '"'$license_key1'"' >> "${INPATH}/modlib/modeller/config.py"
+				einfo "Thank you!"
+				break
+			else
+				eerror "Your license key entries do not match.  Try again."
+			fi
+		fi
+	done
+}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/modeller/
@ 2018-06-11 16:28 Aaron Bauman
  0 siblings, 0 replies; 7+ messages in thread
From: Aaron Bauman @ 2018-06-11 16:28 UTC (permalink / raw
  To: gentoo-commits

commit:     03acc592f645d64982e31912a2416f478885fde0
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sat Jun  9 19:34:38 2018 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Mon Jun 11 16:27:29 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03acc592

sci-chemistry/modeller: use HTTPs

 sci-chemistry/modeller/modeller-9.20.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-chemistry/modeller/modeller-9.20.ebuild b/sci-chemistry/modeller/modeller-9.20.ebuild
index 0d29c3843f2..e7e80937b7f 100644
--- a/sci-chemistry/modeller/modeller-9.20.ebuild
+++ b/sci-chemistry/modeller/modeller-9.20.ebuild
@@ -8,8 +8,8 @@ PYTHON_COMPAT=( python2_7 )
 inherit distutils-r1 eutils multilib versionator
 
 DESCRIPTION="Homology or comparative modeling of protein three-dimensional structures"
-HOMEPAGE="http://salilab.org/modeller/"
-SRC_URI="http://salilab.org/${PN}/${PV}/${P}.tar.gz"
+HOMEPAGE="https://salilab.org/modeller/"
+SRC_URI="https://salilab.org/${PN}/${PV}/${P}.tar.gz"
 
 LICENSE="modeller"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/modeller/
@ 2019-07-12 11:46 Alexey Shvetsov
  0 siblings, 0 replies; 7+ messages in thread
From: Alexey Shvetsov @ 2019-07-12 11:46 UTC (permalink / raw
  To: gentoo-commits

commit:     a5e403b16e99731e3ca1db68e236abaf822b4ce1
Author:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 12 11:45:44 2019 +0000
Commit:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Fri Jul 12 11:45:44 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5e403b1

sci-chemistry/modeller: Version bump

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org>

 sci-chemistry/modeller/Manifest             |   1 +
 sci-chemistry/modeller/modeller-9.22.ebuild | 145 ++++++++++++++++++++++++++++
 2 files changed, 146 insertions(+)

diff --git a/sci-chemistry/modeller/Manifest b/sci-chemistry/modeller/Manifest
index 0674ee130c5..69e1780c97f 100644
--- a/sci-chemistry/modeller/Manifest
+++ b/sci-chemistry/modeller/Manifest
@@ -1 +1,2 @@
 DIST modeller-9.20.tar.gz 34909796 BLAKE2B d89c81823c4d7784a7b3d64fdb01158a973edc7d8b316c773e038ba8645797c543d5bc58c1bff5462ae5975a6c2796f4b2d500641d226c3b2281cf794cfeba8d SHA512 667edeeda0a9038258f6932b3cef22a1e9d0fe47f47bd2ac612e7bac7f23a863f5a65cfd93abfa405310e7fb7b305d53e71d6c6e930613b0dbd43b24dcd5919a
+DIST modeller-9.22.tar.gz 34953371 BLAKE2B 3bf8828b38f22955dea973cfe54cbd2f77bf021900bd5aa3c75f083b12e2a7199c3173de526acfeab005c0606816bac347b9bdfb6b62d5e3db9c9e18fed99ac4 SHA512 0056f09a07d6e2b565c8f4accca48ad176c9d32634b75bc4db60a187d56f22ef1710296dfd31bf27f496c5ed100146420be7cfdb135ca8b2b0fac7d7f5fa877f

diff --git a/sci-chemistry/modeller/modeller-9.22.ebuild b/sci-chemistry/modeller/modeller-9.22.ebuild
new file mode 100644
index 00000000000..57f11e16861
--- /dev/null
+++ b/sci-chemistry/modeller/modeller-9.22.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils multilib
+
+DESCRIPTION="Homology or comparative modeling of protein three-dimensional structures"
+HOMEPAGE="https://salilab.org/modeller/"
+SRC_URI="https://salilab.org/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="modeller"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+SLOT="0"
+
+RESTRICT="mirror"
+
+DEPEND=">=dev-lang/swig-1.3"
+RDEPEND=""
+
+INPATH="${EPREFIX}"/opt/modeller${ver}
+
+QA_PREBUILT="/opt/*"
+
+pkg_setup() {
+	case ${ARCH} in
+		x86)
+			EXECTYPE="i386-intel8";;
+		amd64)
+			EXECTYPE="x86_64-intel8";;
+		*)
+			die "Your arch "${ARCH}" does not appear supported at this time.";;
+	esac
+}
+
+python_prepare_all(){
+	sed "s:i386-intel8:${EXECTYPE}:g" -i src/swig/setup.py || die
+	distutils-r1_python_prepare_all
+}
+
+python_compile(){
+	cd src/swig || die
+	swig -python -keyword -nodefaultctor -nodefaultdtor -noproxy modeller.i || die
+	distutils-r1_python_compile
+}
+
+python_install() {
+	cd src/swig || die
+	distutils-r1_python_install
+}
+
+python_install_all(){
+	cd "${S}" || die
+	sed \
+		-e "/^EXECUTABLE_TYPE/s:xxx:${EXECTYPE}:g" \
+		-e "/MODINSTALL/s:xxx:\"${INPATH}\":g" \
+		-i bin/modscript || die
+
+	sed -e "s;@TOPDIR\@;\"${INPATH}\";" \
+		-e "s;@EXETYPE\@;${EXECTYPE};" \
+		bin/modpy.sh.in > "${T}/modpy.sh"
+
+	insinto ${INPATH}
+	doins -r modlib
+	python_foreach_impl python_domodule modlib/modeller
+
+	insinto ${INPATH}/bin
+	doins -r bin/{lib,*top}
+
+	exeinto ${INPATH}/bin
+	doexe bin/{modscript,mod${PV}_${EXECTYPE}} "${T}"/modpy.sh
+
+	python_foreach_impl python_doscript bin/modslave.py
+	dosym ${INPATH}/bin/modscript /opt/bin/mod${PV}
+	dosym ${INPATH}/bin/modpy.sh /opt/bin/modpy.sh
+
+	exeinto ${INPATH}/lib/${EXECTYPE}/
+	doexe lib/${EXECTYPE}/lib*
+	dosym libmodeller.so.8 ${INPATH}/lib/${EXECTYPE}/libmodeller.so
+	dosym ../../${INPATH}/lib/${EXECTYPE}/libmodeller.so.8 /usr/$(get_libdir)/libmodeller.so.8
+
+	use doc && HTML_DOCS=( doc/. )
+	distutils-r1_python_install_all
+
+	if use examples; then
+		insinto /usr/share/${PN}/
+		doins -r examples
+	fi
+
+	insinto /etc/revdep-rebuild
+	cat >> "${T}"/40-${PN} <<- EOF
+	SEARCH_DIRS_MASK="${EPREFIX}/opt/modeller/lib/"
+	EOF
+	doins "${T}"/40-${PN}
+}
+
+pkg_postinst() {
+	if [[ ! -e "${INPATH}/modlib/modeller/config.py" ]]; then
+		echo install_dir = \"${INPATH}/\"> ${INPATH}/modlib/modeller/config.py
+	fi
+
+	if grep -q license ${INPATH}/modlib/modeller/config.py; then
+		einfo "A license key file is already present in ${IN_PATH}/modlib/modeller/config.py"
+	else
+		ewarn "Obtain a license Key from"
+		ewarn "http://salilab.org/modeller/registration.html"
+		ewarn "And run this before using modeller:"
+		ewarn "emerge --config =${CATEGORY}/${PF}"
+		ewarn "That way you can [re]enter your license key."
+	fi
+}
+
+pkg_postrm() {
+	ewarn "This package leaves a license Key file in ${INPATH}/modlib/modeller/config.py"
+	ewarn "that you need to remove to completely get rid of modeller."
+}
+
+pkg_config() {
+	ewarn "Your license key is NOT checked for validity here."
+	ewarn "  Make sure you type it in correctly."
+	eerror "If you CTRL+C out of this, modeller will not run!"
+	while true
+	do
+		einfo "Please enter your license key:"
+		read license_key1
+		einfo "Please re-enter your license key:"
+		read license_key2
+		if [[ "$license_key1" == "" ]]
+		then
+			echo "You entered a blank license key.  Try again."
+		else
+			if [[ "$license_key1" == "$license_key2" ]]
+			then
+				echo license = '"'$license_key1'"' >> "${INPATH}/modlib/modeller/config.py"
+				einfo "Thank you!"
+				break
+			else
+				eerror "Your license key entries do not match.  Try again."
+			fi
+		fi
+	done
+}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/modeller/
@ 2020-12-02 12:09 Alexey Shvetsov
  0 siblings, 0 replies; 7+ messages in thread
From: Alexey Shvetsov @ 2020-12-02 12:09 UTC (permalink / raw
  To: gentoo-commits

commit:     fb3f7ff1498a2a525dfeb40acaa219d31fe56471
Author:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  2 12:08:41 2020 +0000
Commit:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Wed Dec  2 12:08:54 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb3f7ff1

sci-chemistry/modeller: resurection

Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org>

 sci-chemistry/modeller/Manifest             |   1 +
 sci-chemistry/modeller/metadata.xml         |  12 +++
 sci-chemistry/modeller/modeller-9.25.ebuild | 149 ++++++++++++++++++++++++++++
 3 files changed, 162 insertions(+)

diff --git a/sci-chemistry/modeller/Manifest b/sci-chemistry/modeller/Manifest
new file mode 100644
index 00000000000..e3d097b4b75
--- /dev/null
+++ b/sci-chemistry/modeller/Manifest
@@ -0,0 +1 @@
+DIST modeller-9.25.tar.gz 44820658 BLAKE2B b3e8a3cc8cc70689a25bc5ed2eee294d67bef8eea9ed4b64d41aba3a27c0bc428ae58e74d734da0eaab7e4fabb213d098b9ba66b9569557159ac7d4a58244b0a SHA512 93f273aba0ec0f884cde5bbcc24769a09386bfc6bf1744d80001e41924b1a682225ba3c554fb9898ef3bfd1fd8451f9458bb92431b20f2f51b01781e79686c91

diff --git a/sci-chemistry/modeller/metadata.xml b/sci-chemistry/modeller/metadata.xml
new file mode 100644
index 00000000000..7daa2ce7e5f
--- /dev/null
+++ b/sci-chemistry/modeller/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>alexxy@gentoo.org</email>
+		<name>Alexey Shvetsov</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>sci-chemistry@gentoo.org</email>
+		<name>Gentoo Chemistry Project</name>
+	</maintainer>
+</pkgmetadata>

diff --git a/sci-chemistry/modeller/modeller-9.25.ebuild b/sci-chemistry/modeller/modeller-9.25.ebuild
new file mode 100644
index 00000000000..2e2cae47f51
--- /dev/null
+++ b/sci-chemistry/modeller/modeller-9.25.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8,9} )
+DISTUTILS_USE_SETUPTOOLS=no
+
+inherit distutils-r1 eutils multilib
+
+DESCRIPTION="Homology or comparative modeling of protein three-dimensional structures"
+HOMEPAGE="https://salilab.org/modeller/"
+SRC_URI="https://salilab.org/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="modeller"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples"
+SLOT="0"
+
+RESTRICT="mirror"
+
+DEPEND=">=dev-lang/swig-1.3"
+RDEPEND=""
+
+INPATH="${EPREFIX}"/opt/modeller${ver}
+
+QA_PREBUILT="/opt/*"
+
+pkg_setup() {
+	case ${ARCH} in
+		x86)
+			EXECTYPE="i386-intel8";;
+		amd64)
+			EXECTYPE="x86_64-intel8";;
+		*)
+			die "Your arch "${ARCH}" does not appear supported at this time.";;
+	esac
+}
+
+python_prepare_all(){
+	sed "s:i386-intel8:${EXECTYPE}:g" -i src/swig/setup.py || die
+	rm -rf modlib/modeller/python_library || die
+	sed -i '1 i\#!/usr/bin/python' bin/modslave.py || die
+	2to3 -w -n modlib/modeller || die
+	distutils-r1_python_prepare_all
+}
+
+python_compile(){
+	cd src/swig || die
+	swig -python -keyword -nodefaultctor -nodefaultdtor -noproxy modeller.i || die
+	distutils-r1_python_compile
+}
+
+python_install() {
+	cd src/swig || die
+	distutils-r1_python_install
+}
+
+python_install_all(){
+	cd "${S}" || die
+	sed \
+		-e "/^EXECUTABLE_TYPE/s:xxx:${EXECTYPE}:g" \
+		-e "/MODINSTALL/s:xxx:\"${INPATH}\":g" \
+		-i bin/modscript || die
+
+	sed -e "s;@TOPDIR\@;\"${INPATH}\";" \
+		-e "s;@EXETYPE\@;${EXECTYPE};" \
+		bin/modpy.sh.in > "${T}/modpy.sh"
+
+	insinto ${INPATH}
+	doins -r modlib
+	python_foreach_impl python_domodule modlib/modeller
+
+	insinto ${INPATH}/bin
+	doins -r bin/{lib,*top}
+
+	exeinto ${INPATH}/bin
+	doexe bin/{modscript,mod${PV}_${EXECTYPE}} "${T}"/modpy.sh
+
+	python_foreach_impl python_doscript bin/modslave.py
+	dosym ${INPATH}/bin/modscript /opt/bin/mod${PV}
+	dosym ${INPATH}/bin/modpy.sh /opt/bin/modpy.sh
+
+	exeinto ${INPATH}/lib/${EXECTYPE}/
+	doexe lib/${EXECTYPE}/lib*
+	dosym libmodeller.so.12 ${INPATH}/lib/${EXECTYPE}/libmodeller.so
+	dosym ../../${INPATH}/lib/${EXECTYPE}/libmodeller.so.12 /usr/$(get_libdir)/libmodeller.so.12
+
+	use doc && HTML_DOCS=( doc/. )
+	distutils-r1_python_install_all
+
+	if use examples; then
+		insinto /usr/share/${PN}/
+		doins -r examples
+	fi
+
+	insinto /etc/revdep-rebuild
+	cat >> "${T}"/40-${PN} <<- EOF
+	SEARCH_DIRS_MASK="${EPREFIX}/opt/modeller/lib/"
+	EOF
+	doins "${T}"/40-${PN}
+}
+
+pkg_postinst() {
+	if [[ ! -e "${INPATH}/modlib/modeller/config.py" ]]; then
+		echo install_dir = \"${INPATH}/\"> ${INPATH}/modlib/modeller/config.py
+	fi
+
+	if grep -q license ${INPATH}/modlib/modeller/config.py; then
+		einfo "A license key file is already present in ${IN_PATH}/modlib/modeller/config.py"
+	else
+		ewarn "Obtain a license Key from"
+		ewarn "http://salilab.org/modeller/registration.html"
+		ewarn "And run this before using modeller:"
+		ewarn "emerge --config =${CATEGORY}/${PF}"
+		ewarn "That way you can [re]enter your license key."
+	fi
+}
+
+pkg_postrm() {
+	ewarn "This package leaves a license Key file in ${INPATH}/modlib/modeller/config.py"
+	ewarn "that you need to remove to completely get rid of modeller."
+}
+
+pkg_config() {
+	ewarn "Your license key is NOT checked for validity here."
+	ewarn "  Make sure you type it in correctly."
+	eerror "If you CTRL+C out of this, modeller will not run!"
+	while true
+	do
+		einfo "Please enter your license key:"
+		read license_key1
+		einfo "Please re-enter your license key:"
+		read license_key2
+		if [[ "$license_key1" == "" ]]
+		then
+			echo "You entered a blank license key.  Try again."
+		else
+			if [[ "$license_key1" == "$license_key2" ]]
+			then
+				echo license = '"'$license_key1'"' >> "${INPATH}/modlib/modeller/config.py"
+				einfo "Thank you!"
+				break
+			else
+				eerror "Your license key entries do not match.  Try again."
+			fi
+		fi
+	done
+}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/modeller/
@ 2020-12-02 12:12 Alexey Shvetsov
  0 siblings, 0 replies; 7+ messages in thread
From: Alexey Shvetsov @ 2020-12-02 12:12 UTC (permalink / raw
  To: gentoo-commits

commit:     d51a5230c68af650090278d69863c711af93172b
Author:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  2 12:12:00 2020 +0000
Commit:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Wed Dec  2 12:12:00 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d51a5230

sci-chemistry/modeller: fix var

Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org>

 sci-chemistry/modeller/modeller-9.25.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-chemistry/modeller/modeller-9.25.ebuild b/sci-chemistry/modeller/modeller-9.25.ebuild
index 2e2cae47f51..c07e6348056 100644
--- a/sci-chemistry/modeller/modeller-9.25.ebuild
+++ b/sci-chemistry/modeller/modeller-9.25.ebuild
@@ -107,7 +107,7 @@ pkg_postinst() {
 	fi
 
 	if grep -q license ${INPATH}/modlib/modeller/config.py; then
-		einfo "A license key file is already present in ${IN_PATH}/modlib/modeller/config.py"
+		einfo "A license key file is already present in ${INPATH}/modlib/modeller/config.py"
 	else
 		ewarn "Obtain a license Key from"
 		ewarn "http://salilab.org/modeller/registration.html"


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/modeller/
@ 2021-05-04 19:23 Sam James
  0 siblings, 0 replies; 7+ messages in thread
From: Sam James @ 2021-05-04 19:23 UTC (permalink / raw
  To: gentoo-commits

commit:     1a6b6a57aa0e0f220cfb2fee39fca7f130486251
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 27 20:03:05 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May  4 19:22:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a6b6a57

sci-chemistry/modeller: fix function/phase declaration style

Package-Manager: Portage-3.0.18-prefix, Repoman-3.0.3
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-chemistry/modeller/modeller-9.25.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sci-chemistry/modeller/modeller-9.25.ebuild b/sci-chemistry/modeller/modeller-9.25.ebuild
index 7dd6a100154..3e44bd99585 100644
--- a/sci-chemistry/modeller/modeller-9.25.ebuild
+++ b/sci-chemistry/modeller/modeller-9.25.ebuild
@@ -37,7 +37,7 @@ pkg_setup() {
 	esac
 }
 
-python_prepare_all(){
+python_prepare_all() {
 	sed "s:i386-intel8:${EXECTYPE}:g" -i src/swig/setup.py || die
 	rm -rf modlib/modeller/python_library || die
 	sed -i '1 i\#!/usr/bin/python' bin/modslave.py || die
@@ -45,7 +45,7 @@ python_prepare_all(){
 	distutils-r1_python_prepare_all
 }
 
-python_compile(){
+python_compile() {
 	cd src/swig || die
 	swig -python -keyword -nodefaultctor -nodefaultdtor -noproxy modeller.i || die
 	distutils-r1_python_compile
@@ -56,7 +56,7 @@ python_install() {
 	distutils-r1_python_install
 }
 
-python_install_all(){
+python_install_all() {
 	cd "${S}" || die
 	sed \
 		-e "/^EXECUTABLE_TYPE/s:xxx:${EXECTYPE}:g" \


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/modeller/
@ 2022-04-08  9:54 Alexey Shvetsov
  0 siblings, 0 replies; 7+ messages in thread
From: Alexey Shvetsov @ 2022-04-08  9:54 UTC (permalink / raw
  To: gentoo-commits

commit:     fe0ba8b3124e39411eb205606951ee3199e66459
Author:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  8 09:53:40 2022 +0000
Commit:     Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Fri Apr  8 09:53:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe0ba8b3

sci-chemistry/modeller: enable py3.10

Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org>

 sci-chemistry/modeller/modeller-9.25.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sci-chemistry/modeller/modeller-9.25.ebuild b/sci-chemistry/modeller/modeller-9.25.ebuild
index 3e44bd99585c..f791a3104661 100644
--- a/sci-chemistry/modeller/modeller-9.25.ebuild
+++ b/sci-chemistry/modeller/modeller-9.25.ebuild
@@ -1,12 +1,12 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{7..10} )
 DISTUTILS_USE_SETUPTOOLS=no
 
-inherit distutils-r1 multilib
+inherit distutils-r1
 
 DESCRIPTION="Homology or comparative modeling of protein three-dimensional structures"
 HOMEPAGE="https://salilab.org/modeller/"


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-04-08  9:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-02 12:12 [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/modeller/ Alexey Shvetsov
  -- strict thread matches above, loose matches on Subject: below --
2022-04-08  9:54 Alexey Shvetsov
2021-05-04 19:23 Sam James
2020-12-02 12:09 Alexey Shvetsov
2019-07-12 11:46 Alexey Shvetsov
2018-06-11 16:28 Aaron Bauman
2018-06-08 13:01 Alexey Shvetsov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox