summaryrefslogtreecommitdiff
path: root/dev-util/uncrustify
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/uncrustify
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/uncrustify')
-rw-r--r--dev-util/uncrustify/Manifest9
-rw-r--r--dev-util/uncrustify/files/uncrustify-0.59-unistdh.patch16
-rw-r--r--dev-util/uncrustify/metadata.xml16
-rw-r--r--dev-util/uncrustify/uncrustify-0.59.ebuild32
-rw-r--r--dev-util/uncrustify/uncrustify-0.64.ebuild35
-rw-r--r--dev-util/uncrustify/uncrustify-9999.ebuild35
6 files changed, 143 insertions, 0 deletions
diff --git a/dev-util/uncrustify/Manifest b/dev-util/uncrustify/Manifest
new file mode 100644
index 000000000000..fee952e87516
--- /dev/null
+++ b/dev-util/uncrustify/Manifest
@@ -0,0 +1,9 @@
+AUX uncrustify-0.59-unistdh.patch 473 SHA256 92918a0a216d9bd3aaf3fbe8dbd6ab8981b73d1d2212632acb70f27bbff13e31 SHA512 a7ed9c1e0a587dc9923085c7a830192fece50ba18c2a19617de60209e051ec44d517d337738c7948454669b3d2061625379cacb301e44d239b3c2b90b09e6114 WHIRLPOOL 00fd81603560c73c48b586f9567898931879b8bac3789e5ecdb870829dd5bfe4e3d30ee245958c0e1a151c19e5a261e836fe70788cc2b1fa8c3faa0955701ebf
+DIST uncrustify-0.59.tar.gz 983822 SHA256 3f2ba1ca15f7ed1cd0871d54a5dd4ecf006fd167a0fa0fe1d5d76c91106238b5 SHA512 eb228ecb63f777e90ecca44bdef2312fbca2cdbdf9dd899e1f67e9917265667584796b983050138bae39773ab2627e3c3035e519f64dfe51475f207a0e3af900 WHIRLPOOL 85d702e2968d6fbbce7f15fb23d2bbb5e2131f462076e82adf109c684c9b09410c409aa0d75114e7d5b8951d1dfdee80186d483e48d57c1e183d4c3a27bfa8b5
+DIST uncrustify-0.64.tar.gz 1178957 SHA256 2a8cb3ab82ca53202d50fc2c2cec0edd11caa584def58d356c1c759b57db0b32 SHA512 bc7361520adc3c95c9ba3dffeabadec4219af1827ed2f4ae0c4ad94a0f366490854ed40d09ecc6bf3f34941bf87722f013e01d1a1684c9f7fb1adac6dd4fee01 WHIRLPOOL 1e45748b8dc3c2c99dd774677d539b4bd7e1f4f52c3e9a40894df3ab67780767604dd845e9ffc6f69eb23980e447ce8d82c526eba1236454194baac5f25d9a84
+EBUILD uncrustify-0.59.ebuild 726 SHA256 85248fa0eb2c4d56bdaedc45d3a14995490429f01fc3e80715855bea8960f9b3 SHA512 a0aa2fca968e77a7eb0d92d183d97cea5d19a781c28d48167ecbd1b410560436cfd3c31b57876cea5aca4afabad0db76c5a4cfcbd10b0f8a8a72913ca8c7da5e WHIRLPOOL 27bdf8250c17e7d226c9df0d475d1efbbc02b1da5a31907f0dcb3f946d02b26a3ba917e48a902c982fdbaf555603271bdd05f10f4fdfd44addc9c50458eb31fd
+EBUILD uncrustify-0.64.ebuild 768 SHA256 76c768a475b959d28a5907985a044bb592bdfdc0cb803342c9dff839c9fbe3ec SHA512 ddd9587992e64a9872591669e20301ae9955a533dc6dabb7e35ba3764edacf39155221f48107b30c852e863cb4c1e9a049f3efde5742233d4a81415f3d6e87e9 WHIRLPOOL 6e867c87feb35ac1c31cf287e30d28f8707619c2506dd060f7084e1d33bcaf4cf9b826c10b3c2b887f2a7ac138a8d8b429062632b790093257a28c27698180f5
+EBUILD uncrustify-9999.ebuild 768 SHA256 76c768a475b959d28a5907985a044bb592bdfdc0cb803342c9dff839c9fbe3ec SHA512 ddd9587992e64a9872591669e20301ae9955a533dc6dabb7e35ba3764edacf39155221f48107b30c852e863cb4c1e9a049f3efde5742233d4a81415f3d6e87e9 WHIRLPOOL 6e867c87feb35ac1c31cf287e30d28f8707619c2506dd060f7084e1d33bcaf4cf9b826c10b3c2b887f2a7ac138a8d8b429062632b790093257a28c27698180f5
+MISC ChangeLog 3400 SHA256 602e5d33aede1dd33db105f1e1f661fbb63c347d002356001e324ebe36bf70de SHA512 503e0de64a4df10f642c4f8d3f8b32a957d4789c0e4be35ec426275de976a3676c3baf3cea43b14dc25a6e043cfe139873ac6dbee67a0d05231d2e9e773145ed WHIRLPOOL 9e4099b301bf0febf48bc648ae054b0887b7f37655794a2cec9f43dcf0908a1e34e207c4b283ae8ea37f34347ec78a149022494d90141db51cf916cbe3970815
+MISC ChangeLog-2015 3653 SHA256 0cd5e3fcd9b0852be17bcdabfd68e3ffe0d0232647efcc681344f69a4beff524 SHA512 9dc5b75579b82c7fffff9f98b1596b8e064ae6bd26cfe98e4c67c63fe8b4718a9c2f2e347e65001f00a1042b65fefcbf57404b9c9246820c42bede15cc2ce3cf WHIRLPOOL e2f17eb15a1b2cc3dbc437e3a53ac66d6e4e8c0f36b4ac33c72660226ea57cbba87b8ecdcded76f5e5e770e5a480e4ad8aeafbce520ee8b773d53096d32470e3
+MISC metadata.xml 499 SHA256 26fa8a7dc618352f5e0a7652cf55ae32165d9f20c6d19dd4aba7f85d2bf53825 SHA512 e8a379440acebe626dc28ecd4de5e76e1a684e67441bcce6720eb4ea834102c4d020d91a5950ffd24fc297ccd5ea8386850b0bfe0771352539936345d8b1f3cb WHIRLPOOL 56bcb59488eccae096ee4b27946acf09a1f784a74f3803481f51ad39ab0c2b150e3e415f2147e9c046d6a7392adb5270e8f62722223e0ec8fe5ff19b7a700d1b
diff --git a/dev-util/uncrustify/files/uncrustify-0.59-unistdh.patch b/dev-util/uncrustify/files/uncrustify-0.59-unistdh.patch
new file mode 100644
index 000000000000..275c21aba339
--- /dev/null
+++ b/dev-util/uncrustify/files/uncrustify-0.59-unistdh.patch
@@ -0,0 +1,16 @@
+open/close/etc. are defined in unistd.h, GCC 4.7 is stricter in this and
+breaks the build, bug #413859. Upstream already applied a similar
+change for another issue, so next release should be fine.
+
+--- uncrustify-0.59/src/uncrustify.cpp
++++ uncrustify-0.59/src/uncrustify.cpp
+@@ -24,6 +24,9 @@
+ #include <cstdlib>
+ #include <cstring>
+ #include <cerrno>
++#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#endif
+ #include <fcntl.h>
+ #include "unc_ctype.h"
+ #ifdef HAVE_SYS_STAT_H
diff --git a/dev-util/uncrustify/metadata.xml b/dev-util/uncrustify/metadata.xml
new file mode 100644
index 000000000000..370ea023f4f0
--- /dev/null
+++ b/dev-util/uncrustify/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grobian@gentoo.org</email>
+ <name>Fabian Groffen</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>alexxy@gentoo.org</email>
+ <name>Alexey Shvetosov</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">uncrustify</remote-id>
+ <remote-id type="github">uncrustify/uncrustify</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/uncrustify/uncrustify-0.59.ebuild b/dev-util/uncrustify/uncrustify-0.59.ebuild
new file mode 100644
index 000000000000..38fc0c4aa6b7
--- /dev/null
+++ b/dev-util/uncrustify/uncrustify-0.59.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit eutils
+
+DESCRIPTION="C/C++/C#/D/Java/Pawn code indenter and beautifier"
+HOMEPAGE="http://uncrustify.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
+IUSE="test"
+
+DEPEND="test? ( =dev-lang/python-2* )"
+RDEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-unistdh.patch
+}
+
+src_test() {
+ cd tests
+ python2 run_tests.py || die "tests failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+ dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"
+}
diff --git a/dev-util/uncrustify/uncrustify-0.64.ebuild b/dev-util/uncrustify/uncrustify-0.64.ebuild
new file mode 100644
index 000000000000..d0891fcae6c3
--- /dev/null
+++ b/dev-util/uncrustify/uncrustify-0.64.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ $PV == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ KEYWORDS=""
+ SRC_URI=""
+ scm_eclass=git-r3
+else
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz"
+ S=${WORKDIR}/${PN}-${P}
+fi
+
+inherit cmake-utils ${scm_eclass}
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-r1
+
+DESCRIPTION="C/C++/C#/D/Java/Pawn code indenter and beautifier"
+HOMEPAGE="http://uncrustify.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="test"
+
+DEPEND="test? ( ${PYTHON_DEPS} )"
+
+python_test() {
+ cd tests
+ ${EPYTHON} run_tests.py || die "tests failed"
+}
diff --git a/dev-util/uncrustify/uncrustify-9999.ebuild b/dev-util/uncrustify/uncrustify-9999.ebuild
new file mode 100644
index 000000000000..d0891fcae6c3
--- /dev/null
+++ b/dev-util/uncrustify/uncrustify-9999.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+if [[ $PV == *9999* ]]; then
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+ KEYWORDS=""
+ SRC_URI=""
+ scm_eclass=git-r3
+else
+ KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris"
+ SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz"
+ S=${WORKDIR}/${PN}-${P}
+fi
+
+inherit cmake-utils ${scm_eclass}
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-any-r1
+
+DESCRIPTION="C/C++/C#/D/Java/Pawn code indenter and beautifier"
+HOMEPAGE="http://uncrustify.sourceforge.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="test"
+
+DEPEND="test? ( ${PYTHON_DEPS} )"
+
+python_test() {
+ cd tests
+ ${EPYTHON} run_tests.py || die "tests failed"
+}