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 3CBB1139085 for ; Mon, 2 Jan 2017 14:36:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7132221C06C; Mon, 2 Jan 2017 14:36:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4291B21C06C for ; Mon, 2 Jan 2017 14:36:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 32715341016 for ; Mon, 2 Jan 2017 14:36:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5631424EF for ; Mon, 2 Jan 2017 14:36:43 +0000 (UTC) From: "Daniel Campbell" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Daniel Campbell" Message-ID: <1483367754.e0f1bc85e31e15cbbf39d6a9e1e9263a82c1711b.zlg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/astyle/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/astyle/Manifest dev-util/astyle/astyle-2.06.ebuild X-VCS-Directories: dev-util/astyle/ X-VCS-Committer: zlg X-VCS-Committer-Name: Daniel Campbell X-VCS-Revision: e0f1bc85e31e15cbbf39d6a9e1e9263a82c1711b X-VCS-Branch: master Date: Mon, 2 Jan 2017 14:36:43 +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-Archives-Salt: 1445d02b-214b-4aee-ab65-8a334219a2f5 X-Archives-Hash: 55dec3278a3eb0122069f2a0d964e3a0 commit: e0f1bc85e31e15cbbf39d6a9e1e9263a82c1711b Author: Daniel Campbell gentoo org> AuthorDate: Mon Jan 2 14:35:54 2017 +0000 Commit: Daniel Campbell gentoo org> CommitDate: Mon Jan 2 14:35:54 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0f1bc85 dev-util/astyle: version bump wrt bug 604102 version bump, updated LICENSE to match upstream. Gentoo-Bug: 604102 Gentoo-Bug-URL: https://bugs.gentoo.org/604102 Package-Manager: Portage-2.3.3, Repoman-2.3.1 dev-util/astyle/Manifest | 1 + dev-util/astyle/astyle-2.06.ebuild | 65 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/dev-util/astyle/Manifest b/dev-util/astyle/Manifest index 4a8ca9e..724f976 100644 --- a/dev-util/astyle/Manifest +++ b/dev-util/astyle/Manifest @@ -1,2 +1,3 @@ DIST astyle_2.04_linux.tar.gz 156974 SHA256 70b37f4853c418d1e2632612967eebf1bdb93dfbe558c51d7d013c9b4e116b60 SHA512 bc0f6351fac4198ab969251342c4e453064b07512a2d06825a93c75daf86b06469c9971f35fbadad872d23368dc546019d8d174e07ceaad6e10007f562fdeffd WHIRLPOOL d9aa3f537885e373d791204652ed5c8d5231be0840ef5dde3714bb8c9c524e327585a51b7b14da1aae2952f7c9248401bc2769290bc5828d15f030f41d95c1fe DIST astyle_2.05.1_linux.tar.gz 152765 SHA256 fbdfc6f1966a972d19a215927266c76d4183eee235ed1e2bd7ec551c2a270eac SHA512 853bf84cb196f2300ca00fb7f18fe336764f1205ae0674a75c1a019bf734495d8fb3d9b6aca0ea258b6632921fb268906128c1afb80596532489749cd2cbe495 WHIRLPOOL ceef3bfa64632a4fe9afcc332fdf742e60b6e7d21655449372bd6c89db7444eddf6bbfee48684bb9f18e119cf040f36c62544cfc8bb040ed83095e9aed9fce56 +DIST astyle_2.06_linux.tar.gz 162037 SHA256 3b7212210dc139e8f648e004b758c0be1b3ceb1694b22a879202d2b833db7c7e SHA512 e2da96b45d06385b284ed3107309dfa4fad904910a729232bdb8554b40332a673d33e1f153ffb2ebb0342c73098b79980628678be9dde45a4d4d23237fe8a8c5 WHIRLPOOL 02696ffbfb7f621d45ff8140f75cda38cce8587349269d9b87aba56a365f4375c7ce1ca67b3c0af8e1c6f627397d016ecc907437b4085599f24d2927b86c7878 diff --git a/dev-util/astyle/astyle-2.06.ebuild b/dev-util/astyle/astyle-2.06.ebuild new file mode 100644 index 00000000..671d30b --- /dev/null +++ b/dev-util/astyle/astyle-2.06.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils java-pkg-opt-2 multilib toolchain-funcs + +DESCRIPTION="Artistic Style is a reindenter and reformatter of C++, C and Java source code" +HOMEPAGE="http://astyle.sourceforge.net/" +SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" + +IUSE="doc java static-libs" + +DEPEND="app-arch/xz-utils + java? ( >=virtual/jdk-1.6:= )" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${PN} + +pkg_setup() { + java-pkg-opt-2_pkg_setup + tc-export CXX +} + +src_prepare() { + eapply_user + java-pkg-opt-2_src_prepare + sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \ + -e "s:ar crs:$(tc-getAR) crs:" \ + -i build/gcc/Makefile || die +} + +src_compile() { + emake -f ../build/gcc/Makefile -C src \ + ${PN} \ + shared \ + $(usex java java '') \ + $(usex static-libs static '') +} + +src_install() { + insinto /usr/include + doins src/${PN}.h + + pushd src/bin &> /dev/null + dobin ${PN} + + dolib.so lib${P}.so + dosym lib${P}.so /usr/$(get_libdir)/lib${PN}.so + if use java ; then + dolib.so lib${P}j.so + dosym lib${P}j.so /usr/$(get_libdir)/lib${PN}j.so + fi + if use static-libs ; then + dolib lib${PN}.a + fi + popd &> /dev/null + + use doc && dohtml doc/* +}