Import devel/automoc. This is actually x11/kde4/automoc, with patch for

new Boost. It's silly to have other ports depend on x11/kde4/automoc
since the latter isn't linked to builds, and x11/kde4 should contain KDE SC
only eventually anyway.

ok espie@
This commit is contained in:
zhuk 2013-02-02 09:42:07 +00:00
parent 0b5af6a30a
commit 5570fac61a
5 changed files with 54 additions and 0 deletions

24
devel/automoc/Makefile Normal file
View File

@ -0,0 +1,24 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/02/02 09:42:07 zhuk Exp $
CATEGORIES = devel
COMMENT = K Desktop Environment, frontend to moc
VERSION = 0.9.88
DISTNAME = automoc4-${VERSION}
EXTRACT_SUFX = .tar.bz2
REVISION = 0
# 2-clause BSDL
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
MASTER_SITES = ${MASTER_SITE_KDE:=stable/automoc4/${VERSION}/}
DIST_SUBDIR = kde
WANTLIB = c m stdc++
MODULES = x11/kde4
MODKDE4_USE =
.include <bsd.port.mk>

2
devel/automoc/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (kde/automoc4-0.9.88.tar.bz2) = I0EW9MBa4h2ChZTWUrTEoFLvdXJ+LYpPOk+2Bd6eTEk=
SIZE (kde/automoc4-0.9.88.tar.bz2) = 9153

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-automoc4_files_in,v 1.1.1.1 2013/02/02 09:42:07 zhuk Exp $
Automoc could not parse Boost headers using BOOST_JOIN() macro,
so use this workaround until (if ever) Automoc gets fixed.
Patch taken from KDE bug 304111:
https://bugs.kde.org/show_bug.cgi?id=304111
--- automoc4.files.in.orig Fri Nov 23 17:51:04 2012
+++ automoc4.files.in Fri Nov 23 17:52:14 2012
@@ -1,9 +1,9 @@
SOURCES:
@_moc_files@
MOC_COMPILE_DEFINITIONS:
-@_moc_cdefs@
+@_moc_cdefs@;BOOST_TT_HAS_OPERATOR_HPP_INCLUDED
MOC_DEFINITIONS:
-@_moc_defs@
+@_moc_defs@ -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
MOC_INCLUDES:
@_moc_incs@
CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE:

2
devel/automoc/pkg/DESCR Normal file
View File

@ -0,0 +1,2 @@
Qt4-based apps building helper tool that automatically generates
.moc files for Q_OBJECT'ed sources.

7
devel/automoc/pkg/PLIST Normal file
View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/02/02 09:42:07 zhuk Exp $
@pkgpath x11/kde4/automoc
@bin bin/automoc4
lib/automoc4/
lib/automoc4/Automoc4Config.cmake
lib/automoc4/Automoc4Version.cmake
lib/automoc4/automoc4.files.in