diff --git a/textproc/libxmlbird/Makefile b/textproc/libxmlbird/Makefile new file mode 100644 index 00000000000..be8b9a257b8 --- /dev/null +++ b/textproc/libxmlbird/Makefile @@ -0,0 +1,49 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2015/06/22 22:50:00 bcallah Exp $ + +COMMENT = XML parser written in Vala +DISTNAME = libxmlbird-1.0.5 +EXTRACT_SUFX = .tar.xz +CATEGORIES = textproc + +SHARED_LIBS += xmlbird 0.0 # 1.0.5 + +HOMEPAGE = http://birdfont.org/xmlbird.php +MAINTAINER = Brian Callahan + +# LGPLv3+ +PERMIT_PACKAGE_CDROM = Yes + +MASTER_SITES = http://birdfont.org/xmlbird-releases/ + +MODULES = lang/python +MODPY_ADJ_FILES = configure + +BUILD_DEPENDS = devel/py-doit \ + lang/vala + +# 'make test' will fail if not already installed. +TEST_DEPENDS = textproc/libxmlbird + +CONFIGURE_STYLE = simple + +pre-configure: + perl -pi -e "s,bash,sh,g" ${WRKSRC}/scripts/run.py + ${SUBST_CMD} ${WRKSRC}/dodo.py + +do-build: + cd ${WRKSRC} && ${LOCALBASE}/bin/doit + +do-install: + ${INSTALL_DATA} ${WRKSRC}/build/xmlbird.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/build/libxmlbird.so.${LIBxmlbird_VERSION} \ + ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/build/xmlbird.pc \ + ${PREFIX}/lib/pkgconfig + ${INSTALL_DATA_DIR} ${PREFIX}/share/vala/vapi + ${INSTALL_DATA} ${WRKSRC}/build/xmlbird.vapi \ + ${PREFIX}/share/vala/vapi + +do-test: + cd ${WRKSRC} && ${LOCALBASE}/bin/doit test + +.include diff --git a/textproc/libxmlbird/distinfo b/textproc/libxmlbird/distinfo new file mode 100644 index 00000000000..1d87b5014de --- /dev/null +++ b/textproc/libxmlbird/distinfo @@ -0,0 +1,2 @@ +SHA256 (libxmlbird-1.0.5.tar.xz) = vzcwmBG2/6zlMsDxKQ+P6MuvwUOGjY4PL56DGm7oQ18= +SIZE (libxmlbird-1.0.5.tar.xz) = 16416 diff --git a/textproc/libxmlbird/patches/patch-scripts_bavala_py b/textproc/libxmlbird/patches/patch-scripts_bavala_py new file mode 100644 index 00000000000..ccd3691045a --- /dev/null +++ b/textproc/libxmlbird/patches/patch-scripts_bavala_py @@ -0,0 +1,12 @@ +$OpenBSD: patch-scripts_bavala_py,v 1.1.1.1 2015/06/22 22:50:00 bcallah Exp $ +--- scripts/bavala.py.orig Mon Jun 22 10:19:23 2015 ++++ scripts/bavala.py Mon Jun 22 10:19:41 2015 +@@ -229,6 +229,8 @@ class Vala(object): + + if not "bsd" in sys.platform: + create_link = "ln -s -T " + so_file + " " + self.so_link_name + " " ++ else: ++ create_link = "ln -s " + so_file + " " + self.so_link_name + " " + + create_link += "&& mv " + self.so_link_name + " " + self.build + "/" + return { diff --git a/textproc/libxmlbird/pkg/DESCR b/textproc/libxmlbird/pkg/DESCR new file mode 100644 index 00000000000..5eb58f216e4 --- /dev/null +++ b/textproc/libxmlbird/pkg/DESCR @@ -0,0 +1 @@ +libxmlbird is an XML parser written in Vala for use with Birdfont. diff --git a/textproc/libxmlbird/pkg/PLIST b/textproc/libxmlbird/pkg/PLIST new file mode 100644 index 00000000000..0dbd782fde7 --- /dev/null +++ b/textproc/libxmlbird/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2015/06/22 22:50:00 bcallah Exp $ +include/xmlbird.h +@lib lib/libxmlbird.so.${LIBxmlbird_VERSION} +lib/pkgconfig/xmlbird.pc +share/vala/ +share/vala/vapi/ +share/vala/vapi/xmlbird.vapi