perlkde is KDE bindings for Perl.

This commit is contained in:
zhuk 2013-04-24 18:34:57 +00:00
parent 1f940a7ad9
commit 94a5eacc85
5 changed files with 139 additions and 0 deletions

47
x11/kde4/p5-kde/Makefile Normal file
View File

@ -0,0 +1,47 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/24 18:34:57 zhuk Exp $
COMMENT = KDE bindings for Perl
DISTNAME = perlkde-${MODKDE4_VERSION}
PKGNAME = p5-kde-${MODKDE4_VERSION}
WANTLIB = c m perl pthread stdc++ util
WANTLIB += lib/qt4/QtDBus lib/qt4/QtGui lib/qt4/QtNetwork
WANTLIB += lib/qt4/QtOpenGL lib/qt4/QtSql lib/qt4/QtSvg lib/qt4/QtXml
WANTLIB += ${KDE4LIB}/smokeattica ${KDE4LIB}/smokebase ${KDE4LIB}/smokekate
WANTLIB += ${KDE4LIB}/smokekdecore ${KDE4LIB}/smokekdeui
WANTLIB += ${KDE4LIB}/smokekfile ${KDE4LIB}/smokekhtml ${KDE4LIB}/smokekio
WANTLIB += ${KDE4LIB}/smokeknewstuff2 ${KDE4LIB}/smokeknewstuff3
WANTLIB += ${KDE4LIB}/smokekparts ${KDE4LIB}/smokektexteditor
WANTLIB += ${KDE4LIB}/smokekutils ${KDE4LIB}/smokenepomuk
WANTLIB += ${KDE4LIB}/smokenepomukquery ${KDE4LIB}/smokeokular
WANTLIB += ${KDE4LIB}/smokeplasma ${KDE4LIB}/smokeqtcore
WANTLIB += ${KDE4LIB}/smokeqtgui ${KDE4LIB}/smokeqtnetwork
WANTLIB += ${KDE4LIB}/smokesolid ${KDE4LIB}/smokesoprano
WANTLIB += ${KDE4LIB}/smokesopranoclient ${KDE4LIB}/smokesopranoserver
WANTLIB += ${KDE4LIB}/smokeakonadi
MODKDE4_USE =
BUILD_DEPENDS = productivity/attica \
${MODKDE4_DEP_DIR}/okular>=${MODKDE4_DEP_VERSION} \
${MODKDE4_DEP_DIR}/p5-qt>=${MODKDE4_DEP_VERSION} \
${MODKDE4_DEP_DIR}/pimlibs>=${MODKDE4_DEP_VERSION}
RUN_DEPENDS = ${MODKDE4_DEP_DIR}/p5-qt>=${MODKDE4_DEP_VERSION}
LIB_DEPENDS = ${MODKDE4_DEP_DIR}/smokekde>=${MODKDE4_DEP_VERSION}
# Avoid clashing Perl do_open and do_close with GCC's locale_facets.h
post-patch:
@echo "====> Removing extra Perl defines from:" >&2
@cd ${WRKSRC} && find . -name '*.cpp' | sort | while read F; do \
awk -f ${FILESDIR}/undefperl.awk <"$$F" >"$$F".undef || exit 1; \
if cmp -s "$$F" "$$F".undef; then \
rm "$$F".undef; \
else \
echo "\\t$${F#./}" >&2; \
cp "$$F" "$$F".beforeundef && mv "$$F".undef "$$F"; \
fi \
done
.include <bsd.port.mk>

2
x11/kde4/p5-kde/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (kde/perlkde-4.10.2.tar.xz) = iRTHrcTKnr3GKhQu7ejAm/LLiDpgCNHBRJtX3JtDwnA=
SIZE (kde/perlkde-4.10.2.tar.xz) = 44980

View File

@ -0,0 +1,24 @@
#!/usr/bin/awk -f
/^[[:space:]]*\}[[:space:]]*$/ && PERL_HEADERS_START == 2 {
print ""
print "// Avoid clashing with GCC locale_facets.h"
print "#undef do_open"
print "#undef do_close"
}
/^[[:space:]]*\}[[:space:]]*$/ {
PERL_HEADERS_START = 0
}
/#include[[:space:]]+.*[\/"<]perl\.h[">][[:space:]]*$/ && PERL_HEADERS_START == 1 {
PERL_HEADERS_START = 2
}
/extern "C" \{/ {
PERL_HEADERS_START = 1
}
{
print
}

View File

@ -0,0 +1 @@
perlkde is KDE bindings for Perl.

65
x11/kde4/p5-kde/pkg/PLIST Normal file
View File

@ -0,0 +1,65 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/24 18:34:57 zhuk Exp $
lib/kde4/kperlpluginfactory.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Akonadi.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Attica.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/KDECore4.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/KDEUi4.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/KFile.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/KHTML.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/KIO4.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/KNewStuff2.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/KNewStuff3.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/KParts.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/KTextEditor.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/KUtils.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Kate.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Nepomuk.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/NepomukQuery.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Okular.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Plasma4.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Solid.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/Soprano.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/SopranoClient.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/SopranoServer.pm
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Akonadi/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Akonadi/Akonadi.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Attica/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Attica/Attica.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KDECore4/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KDECore4/KDECore4.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KDEUi4/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KDEUi4/KDEUi4.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KFile/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KFile/KFile.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KHTML/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KHTML/KHTML.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KIO4/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KIO4/KIO4.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KNewStuff2/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KNewStuff2/KNewStuff2.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KNewStuff3/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KNewStuff3/KNewStuff3.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KParts/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KParts/KParts.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KTextEditor/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KTextEditor/KTextEditor.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KUtils/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/KUtils/KUtils.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Kate/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Kate/Kate.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Nepomuk/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Nepomuk/Nepomuk.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/NepomukQuery/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/NepomukQuery/NepomukQuery.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Okular/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Okular/Okular.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Plasma4/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Plasma4/Plasma4.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Solid/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Solid/Solid.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Soprano/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/Soprano/Soprano.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/SopranoClient/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/SopranoClient/SopranoClient.so
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/SopranoServer/
libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd/auto/SopranoServer/SopranoServer.so