forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.13, Repoman-2.3.4
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST labltk-8.06.2.tar.gz 369508 SHA256 b32ea0465ec2fff89ebf5219845656f8334f61857e01ea3d59b3ab31749227dd SHA512 d9342d49ba8769edd7a4ed051844f6ae5d3e62a7c2c76e895bfd1162d0433c4ea54f2314b29b708551fba63daec1123553b56f0abb6412807ab00d7bb40b73d6 WHIRLPOOL 4300efb9bc6499901f7b984bb10230fdea0084d6346f5f8acc832eb054f44e52c00425994196721a966caabc917a93210a20b8bea25eefde08b4288f58a04b21 | ||
DIST labltk-8.06.3.tar.gz 369924 SHA256 b6b7076f6a2a7b2f63095013cb4e37a1f2a6eb3d4abb57dbb1b8cff1ae4c6ae6 SHA512 c2002d519c1fcfdd2b13ae6d5836880273dac2660f07f6ee0e7bb932e3fec6f5cc959202efdf712758a17d24dbe50c3f6697c7b125e3123fa8153130d7ece979 WHIRLPOOL 5fb97fba547a99655a2ecce3014f4ef9ef9e57ae5f9db531bb166c066210738aba48c5c79e6900e6559bd40ef11c123dbd8fc9ccdbf056ce813e7b79124c492a | ||
DIST labltk-8.06.4.tar.gz 370079 SHA256 3132dc8f3748a121d094e21b8a8a84322c13882ed36a3d141f2965f23ff87948 SHA512 5221d2378f73cbcc2a4abd003023c01c8f0e1a919029ddb06069db30284b0bdef12e03b66b9c7c694c7a2128b060f2f2a5a34e4f3b8eed1060a0880a2e429644 WHIRLPOOL 23226b6dbd79f7a70123a6377a7f4270e08bd1f9c9997bda02d8a4bf4bec1910f9a0ec42cbecb0e9dedffc7359b5d251bdce0632b6d4f40056cce9029de82a69 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=5 | ||
|
||
inherit findlib eutils | ||
|
||
DESCRIPTION="OCaml interface to the Tcl/Tk GUI framework" | ||
HOMEPAGE="https://forge.ocamlcore.org/projects/labltk/" | ||
SRC_URI="https://forge.ocamlcore.org/frs/download.php/1727/${P}.tar.gz" | ||
|
||
LICENSE="QPL-1.0 LGPL-2" | ||
SLOT="0/${PV}" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" | ||
IUSE="+ocamlopt X" | ||
|
||
RDEPEND=">=dev-lang/tk-8.0.3:= | ||
>=dev-lang/ocaml-4.06:=[ocamlopt?,X?]" | ||
DEPEND="${RDEPEND} | ||
>=dev-ml/findlib-1.5.5-r1" | ||
|
||
src_prepare() { | ||
epatch "${FILESDIR}/findlib.patch" | ||
} | ||
|
||
src_configure() { | ||
./configure --use-findlib --verbose $(use X || echo "--tk-no-x11") || die "configure failed!" | ||
} | ||
|
||
src_compile() { | ||
emake -j1 | ||
use ocamlopt && emake -j1 opt | ||
} | ||
|
||
src_install() { | ||
findlib_src_preinst | ||
dodir /usr/bin | ||
emake \ | ||
INSTALLDIR="${D}$(ocamlc -where)/labltk" \ | ||
INSTALLBINDIR="${ED}/usr/bin/" \ | ||
install | ||
dodoc Changes README.mlTk | ||
} |