From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 38EA21382C5 for ; Thu, 25 Feb 2021 21:37:25 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 81D2DE09D6; Thu, 25 Feb 2021 21:37:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 67CE3E09D6 for ; Thu, 25 Feb 2021 21:37:24 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 741E3340EFE for ; Thu, 25 Feb 2021 21:37:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DA1FE53 for ; Thu, 25 Feb 2021 21:37:21 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1614289030.0477d410017a8ef2a2a44c98da2156eb5245e92e.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/ocamlnet/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ml/ocamlnet/ocamlnet-4.1.8-r1.ebuild X-VCS-Directories: dev-ml/ocamlnet/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 0477d410017a8ef2a2a44c98da2156eb5245e92e X-VCS-Branch: master Date: Thu, 25 Feb 2021 21:37:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ba03410e-d455-4e7c-893e-8c13e4f36580 X-Archives-Hash: 15c3b7ae542894d310760a1be28a6f71 commit: 0477d410017a8ef2a2a44c98da2156eb5245e92e Author: Alfredo Tupone gentoo org> AuthorDate: Thu Feb 25 21:33:17 2021 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Thu Feb 25 21:37:10 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0477d410 dev-ml/ocamlnet: remove gtk use flag Closes: https://bugs.gentoo.org/769323 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Alfredo Tupone gentoo.org> dev-ml/ocamlnet/ocamlnet-4.1.8-r1.ebuild | 76 ++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/dev-ml/ocamlnet/ocamlnet-4.1.8-r1.ebuild b/dev-ml/ocamlnet/ocamlnet-4.1.8-r1.ebuild new file mode 100644 index 00000000000..c0ee784e835 --- /dev/null +++ b/dev-ml/ocamlnet/ocamlnet-4.1.8-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit findlib + +MY_P=${P/_beta/test} +DESCRIPTION="Modules for OCaml application-level Internet protocols" +HOMEPAGE="http://projects.camlcity.org/projects/ocamlnet.html" +SRC_URI="http://download.camlcity.org/download/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="ZLIB GPL-2+" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="kerberos tk httpd +ocamlopt +pcre ssl zip" +RESTRICT="installsources strip" + +# the auth-dh compile flag has been disabled as well, since it depends on +# ocaml-cryptgps, which is not available. + +BDEPEND=" + dev-ml/cppo + virtual/pkgconfig +" +RDEPEND=" + >=dev-ml/findlib-1.0 + >=dev-lang/ocaml-3.10.2:=[ocamlopt?] + pcre? ( >=dev-ml/pcre-ocaml-5:= ) + tk? ( dev-ml/labltk:= ) + ssl? ( net-libs/gnutls:= ) + kerberos? ( virtual/krb5 ) + zip? ( dev-ml/camlzip:= ) +" +DEPEND="${RDEPEND}" + +ocamlnet_use_with() { + if use $1; then + echo "-with-$2" + else + echo "-without-$2" + fi +} + +ocamlnet_use_enable() { + if use $1; then + echo "-enable-$2" + else + echo "-disable-$2" + fi +} + +src_configure() { + ./configure \ + -bindir /usr/bin \ + -datadir /usr/share/${PN} \ + $(ocamlnet_use_enable ssl gnutls) \ + $(ocamlnet_use_enable kerberos gssapi) \ + $(ocamlnet_use_enable pcre pcre) \ + $(ocamlnet_use_enable tk tcl) \ + $(ocamlnet_use_enable zip zip) \ + $(ocamlnet_use_with httpd nethttpd) \ + || die "Error: econf failed!" +} + +src_compile() { + emake -j1 all + if use ocamlopt; then + emake -j1 opt + fi +} + +src_install() { + findlib_src_install +}