Skip to content
Browse files

Unison bump.

  • Loading branch information...
1 parent 1734f29 commit 87762a0d356c001f230d7157184eceaf161aa86a Piotr Karbowski committed May 26, 2012
Showing with 88 additions and 0 deletions.
  1. +3 −0 net-misc/unison/Manifest
  2. +85 −0 net-misc/unison/unison-2.45.4.ebuild
View
3 net-misc/unison/Manifest
@@ -10,3 +10,6 @@ DIST unison-2.32.52.tar.gz 697866 RMD160 8216a2e482d5a445dd7acdb62e1bb6377e90d1a
DIST unison-2.40.63-manual.html 267159 RMD160 ba193743e36bdd868f9576610b94e59e7baf8cb8 SHA1 b941d7a40d1e9968d72ead4d61375091a28c9028 SHA256 b88c6c3a24c359e306e702672cc8da904e72c367861ef2a3dc3df07566948223
DIST unison-2.40.63-manual.pdf 507609 RMD160 48ad20e6f60fe2e7e7651359208a6f314fb49368 SHA1 00eef8818684d409f04b17e7d9d097940349eec8 SHA256 f31a2985132f79c00689e34484ad30bf04c6e121ba77c97be95daa075dc29497
DIST unison-2.40.63.tar.gz 2601791 RMD160 5dede9ea2f1213d4a22ed1914da7bfb1921f9993 SHA1 645e70bc37a5d4e8e9ccb7bad065fc579b18cf75 SHA256 6e6e00643a7e3908ce3604bb5031e4c6d4c6af5c421a79d08a8b7759de12cd9d
+DIST unison-2.45.4-manual.html 270543 RMD160 65591ed64c129bb73264c9b864351fd033b4e5c4 SHA1 d2e98d72d7bc55a00de8e8f413db44a51586df97 SHA256 472598d57ef74972a6488f412ba29200f66c809c165b224aef0458708d00a93b
+DIST unison-2.45.4-manual.pdf 513121 RMD160 418148cb6dacca9ee252bf34f12cd05543fb945d SHA1 30a2de540096c96ba5f0f6f233034d36f7ae39e9 SHA256 f6488eae9fd1e5be405054d96df3aacd5b51c7ce64f615cfed7a43b516f0e839
+DIST unison-2.45.4.tar.gz 2716641 RMD160 344d41a95d80262393547f6f3a99f7548504b261 SHA1 e12cc6744083bf21bff886fff5ba88b79024101e SHA256 f60a3327137129381b2028be43f84d79709ca5794d6394a6ca67a0f5f4d481c1
View
85 net-misc/unison/unison-2.45.4.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils versionator
+
+IUSE="gtk doc static debug threads +ocamlopt test"
+
+DESCRIPTION="Two-way cross-platform file synchronizer"
+HOMEPAGE="http://www.cis.upenn.edu/~bcpierce/unison/"
+LICENSE="GPL-2"
+SLOT="$(get_version_component_range 1-2 ${PV})"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
+
+# ocaml version so we are sure it has ocamlopt use flag
+DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?]
+ gtk? ( >=dev-ml/lablgtk-2.2 )
+ test? ( || ( dev-util/ctags virtual/emacs ) )"
+
+RDEPEND="gtk? ( >=dev-ml/lablgtk-2.2
+ || ( net-misc/x11-ssh-askpass net-misc/ssh-askpass-fullscreen ) )
+ !net-misc/unison:0
+ app-admin/eselect-unison"
+
+#PDEPEND="gtk? ( media-fonts/font-schumacher-misc )"
+
+SRC_URI="http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}.tar.gz
+ doc? ( http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}-manual.pdf
+ http://www.cis.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}-manual.html )"
+
+src_compile() {
+ local myconf
+
+ if use threads; then
+ myconf="$myconf THREADS=true"
+ fi
+
+ if use static; then
+ myconf="$myconf STATIC=true"
+ fi
+
+ if use debug; then
+ myconf="$myconf DEBUGGING=true"
+ fi
+
+ if use gtk; then
+ myconf="$myconf UISTYLE=gtk2"
+ else
+ myconf="$myconf UISTYLE=text"
+ fi
+
+ use ocamlopt || myconf="$myconf NATIVE=false"
+
+ emake clean || die "error cleaning"
+ emake mkProjectInfo || die "error preparing"
+
+ # Discard cflags as it will try to pass them to ocamlc...
+ emake $myconf CFLAGS="" buildexecutable || die "error making unsion"
+}
+
+src_test() {
+ emake selftest || die "selftest failed"
+}
+
+src_install () {
+ # install manually, since it's just too much
+ # work to force the Makefile to do the right thing.
+ newbin unison unison-${SLOT} || die
+ dodoc BUGS.txt CONTRIB INSTALL NEWS \
+ README ROADMAP.txt TODO.txt || die
+
+ if use doc; then
+ dohtml "${DISTDIR}/${P}-manual.html" || die
+ dodoc "${DISTDIR}/${P}-manual.pdf" || die
+ fi
+ use ocamlopt || export STRIP_MASK="*/bin/*"
+}
+
+pkg_postinst() {
+ elog "Unison now uses SLOTs, so you can specify servercmd=/usr/bin/unison-${SLOT}"
+ elog "in your profile files to access exactly this version over ssh."
+ elog "Or you can use 'eselect unison' to set the version."
+}

0 comments on commit 87762a0

Please sign in to comment.
Something went wrong with that request. Please try again.