* [gentoo-commits] proj/kde-sunset:master commit in: dev-util/automoc/files/, dev-util/automoc/
@ 2018-05-31 18:30 Andreas Sturmlechner
0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2018-05-31 18:30 UTC (permalink / raw
To: gentoo-commits
commit: 5598aaecc3cf3dd1b73f3b2257ab5b69f85add51
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu May 31 17:32:30 2018 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu May 31 18:29:54 2018 +0000
URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=5598aaec
dev-util/automoc: Import from Gentoo ebuild repo
Package-Manager: Portage-2.3.40, Repoman-2.3.9
dev-util/automoc/automoc-0.9.88-r1.ebuild | 34 +++++++++++++++
dev-util/automoc/files/automoc-0.9.88-objc++.patch | 48 ++++++++++++++++++++++
dev-util/automoc/metadata.xml | 5 +++
3 files changed, 87 insertions(+)
diff --git a/dev-util/automoc/automoc-0.9.88-r1.ebuild b/dev-util/automoc/automoc-0.9.88-r1.ebuild
new file mode 100644
index 0000000..161306a
--- /dev/null
+++ b/dev-util/automoc/automoc-0.9.88-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+MY_PN="automoc4"
+MY_P="${MY_PN}-${PV}"
+inherit cmake-utils flag-o-matic
+
+DESCRIPTION="KDE Meta Object Compiler"
+HOMEPAGE="https://www.kde.org"
+SRC_URI="mirror://kde/stable/${MY_PN}/${PV}/${MY_P}.tar.bz2"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND="
+ dev-qt/qtcore:4
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}/${PN}-0.9.88-objc++.patch" )
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ if [[ ${ELIBC} = uclibc ]]; then
+ append-flags -pthread
+ fi
+}
diff --git a/dev-util/automoc/files/automoc-0.9.88-objc++.patch b/dev-util/automoc/files/automoc-0.9.88-objc++.patch
new file mode 100644
index 0000000..1f4dacd
--- /dev/null
+++ b/dev-util/automoc/files/automoc-0.9.88-objc++.patch
@@ -0,0 +1,48 @@
+Please refer to
+ http://websvn.kde.org/?view=revision&revision=934696
+
+Adds support for objc++ in automoc, so that running moc on .mm-files will work.
+
+--- trunk/kdesupport/automoc/Automoc4Config.cmake 2009/03/03 15:40:57 934695
++++ trunk/kdesupport/automoc/Automoc4Config.cmake 2009/03/03 15:42:18 934696
+@@ -105,9 +105,9 @@
+ if(NOT _generated AND NOT _skip)
+ get_filename_component(_suffix "${_current_FILE}" EXT)
+ # skip every source file that's not C++
+- if(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C")
++ if(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C" OR _suffix STREQUAL ".mm")
+ list(APPEND _moc_files ${_abs_current_FILE})
+- endif(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C")
++ endif(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C" OR _suffix STREQUAL ".mm")
+ endif(NOT _generated AND NOT _skip)
+ endforeach (_current_FILE)
+
+@@ -156,7 +156,7 @@
+ if(NOT _generated AND NOT _skip)
+ get_filename_component(_suffix "${_current_FILE}" EXT)
+ # skip every source file that's not C++
+- if(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C")
++ if(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C" OR _suffix STREQUAL ".mm")
+ get_filename_component(_basename "${_current_FILE}" NAME_WE)
+ get_filename_component(_abs_path "${_abs_current_FILE}" PATH)
+ set(_header "${_abs_path}/${_basename}.h")
+@@ -168,7 +168,7 @@
+ list(APPEND _moc_headers ${_pheader})
+ endif(EXISTS "${_pheader}")
+ list(APPEND _moc_files ${_abs_current_FILE})
+- endif(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C")
++ endif(_suffix STREQUAL ".cpp" OR _suffix STREQUAL ".cc" OR _suffix STREQUAL ".cxx" OR _suffix STREQUAL ".C" OR _suffix STREQUAL ".mm")
+ endif(NOT _generated AND NOT _skip)
+ endforeach (_current_FILE)
+
+--- trunk/kdesupport/automoc/kde4automoc.cpp 2009/03/03 15:40:57 934695
++++ trunk/kdesupport/automoc/kde4automoc.cpp 2009/03/03 15:42:18 934696
+@@ -326,7 +326,7 @@
+ foreach (const QString &absFilename, sourceFiles) {
+ //qDebug() << absFilename;
+ const QFileInfo sourceFileInfo(absFilename);
+- if (absFilename.endsWith(".cpp") || absFilename.endsWith(".cc") ||
++ if (absFilename.endsWith(".cpp") || absFilename.endsWith(".cc") || absFilename.endsWith(".mm") ||
+ absFilename.endsWith(".cxx") || absFilename.endsWith(".C")) {
+ //qDebug() << "check .cpp file";
+ QFile sourceFile(absFilename);
diff --git a/dev-util/automoc/metadata.xml b/dev-util/automoc/metadata.xml
new file mode 100644
index 0000000..6f49eba
--- /dev/null
+++ b/dev-util/automoc/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-05-31 18:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-31 18:30 [gentoo-commits] proj/kde-sunset:master commit in: dev-util/automoc/files/, dev-util/automoc/ Andreas Sturmlechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox