aboutsummaryrefslogtreecommitdiff
blob: fec738fe3e72db16b661f8e9399b138ce7eec34f (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/mopac7/mopac7-1.10-r1.ebuild,v 1.4 2006/12/14 00:27:25 je_fro Exp $

DESCRIPTION="Powerful, fast semi-empirical package"
HOMEPAGE="http://openmopac.net/"
SRC_URI="http://openmopac.net/MOPAC_for_Linux_8_032.zip"
LICENSE="mopac7"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S=${WORKDIR}

pkg_setup() {
	# We need a license number to proceed
	if [[ -z ${MOPAC_LICENSE} ]]; then
		msg="You must set MOPAC_LICENSE to your license number in make.conf."
		ewarn "$msg"
		die "$msg"
	fi
}

src_install() {
	into /opt/${PN}
	newexe MOPAC2007.out ${PN} || die
	touch "${T}"/${MOPAC_LICENSE} || die
	doins "${T}"/${MOPAC_LICENSE} || die
}