--- /dev/null
+# ChangeLog for sci-physics/hooke
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+*hooke-9999 (03 Nov 2010)
+ 03 Nov 2010; W. Trevor King <wking@drexel.edu> ChangeLog, metadata.xml, hooke-9999.ebuild :
+ - Created ebuild suite for Hooke.
+ - Added initial ChangeLog which should be updated whenever the
+ package is updated in any way. This changelog is targetted to
+ users. This means that the comments should well explained and
+ written in clean English. The details about writing correct
+ changelogs are explained in the skel.ChangeLog file which you can
+ find in the root directory of the portage repository.
--- /dev/null
+EBUILD hooke-9999.ebuild 1597 RMD160 4be4031aa6528437b73285bfb5d33f0a5b5718d5 SHA1 b80ec9a60f8ae5e50978a6c9417b9acacaae0ac6 SHA256 a194d3980068d9f1b47475f8a6e6078200a4357587e75cc9669ef7e2dedf776b
+MISC ChangeLog 690 RMD160 a220893c5e8b6f13f34d26b1c38e99fd0b228922 SHA1 4b84f0c64cfffc6a5b7575781b5bc96d4a7b2e19 SHA256 1639e8db2d294a032cb035431aa3af7fe100d55281ca2d754dd94ff01711b78c
+MISC metadata.xml 310 RMD160 1568615d45618d4e162f7c4fb583d126347ea803 SHA1 a4a8bd0e07eb2ea484db1df5f38d8a4440cd1a62 SHA256 48dccd47092ba73ed46427ea9db7071fc1fde9753398b0f9c7d8b40a530e6416
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+PYTHON_DEPEND="2:2.6"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit eutils distutils scons-utils
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit mercurial
+ EHG_REPO_URI="http://www.physics.drexel.edu/~wking/code/hg/hooke"
+ EHG_REVISION="wtk"
+ SRC_URI=""
+else
+ SRC_URI="http://code.google.com/p/hooke/downloads/detail?name=${P}.tar.gz"
+fi
+
+DESCRIPTION="Force spectroscopy data analysis."
+HOMEPAGE="http://code.google.com/p/hooke/"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc test X"
+
+RDEPEND="dev-python/matplotlib
+ dev-python/numpy
+ sci-libs/scipy
+ test? ( dev-python/nose )
+ X? ( >=dev-python/wxpython-2.8 )"
+DEPEND="${RDEPEND}
+ doc? (
+ dev-python/numpydoc
+ dev-util/scons
+ )"
+# dev-python/numpydoc is in the science overlay
+# http://overlays.gentoo.org/proj/science/wiki/en
+
+src_unpack() {
+ if [[ ${PV} == "9999" ]] ; then
+ mercurial_src_unpack
+ # mercurial eclass doesn't unpack to ${S}, see their use of
+ # ${module}.
+ mv "${WORKDIR}/hooke" "${S}" || die "couldn't rename workdir"
+ else
+ unpack ${A}
+ fi
+ cd "${S}"
+}
+
+src_prepare() {
+ if [[ ${PV} == "9999" ]] ; then
+ # generates hooke.version
+ ./update_copyright.py || die "couldn't generate hooke.version."
+ fi
+ distutils_src_prepare
+}
+
+src_compile() {
+ if use doc ; then
+ escons -C doc || die "couldn't build documentation"
+ fi
+ distutils_src_compile
+}
+
+src_install() {
+ dodoc AUTHORS CHANGELOG README
+ if use doc ; then
+ dohtml -r doc/build/html/*
+ fi
+ distutils_src_install
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd></herd>
+ <maintainer>
+ <email>wking@drexel.edu</email>
+ <name>W. Trevor King</name>
+ <description>Force spectroscopy data analysis.</description>
+ </maintainer>
+</pkgmetadata>