diff --git a/editors/texworks/Makefile b/editors/texworks/Makefile new file mode 100644 index 00000000000..f9d7fb9d563 --- /dev/null +++ b/editors/texworks/Makefile @@ -0,0 +1,46 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/06/22 20:51:10 sthen Exp $ + +COMMENT = easy to use LaTeX and ConTeXt editor + +V = 20090618 +DISTNAME = texworks-svn-${V} +PKGNAME = texworks-${V} +CATEGORIES = editors print +HOMEPAGE = http://www.tug.org/texworks/ +MAINTAINER = Edd Barrett + +# GPLv2 +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +WANTLIB = ICE SM X11 Xext Xi Xinerama Xrender c \ + fontconfig freetype glib-2.0 gthread-2.0 iconv intl \ + m png pthread stdc++ z expat gobject-2.0 + +# No official release as of yet, hosting my own dist +MASTER_SITES = http://students.dec.bmth.ac.uk/ebarrett/distfiles/ + +WRKDIST = ${WRKDIR}/texworks-svn + +MODULES = x11/qt4 +LIB_DEPENDS = hunspell-1.2::textproc/hunspell \ + dbus-1::x11/dbus \ + poppler::print/poppler \ + poppler-qt4::print/poppler,-qt4 \ + QtDBus,QtGui,QtXml::x11/qt4 +RUN_DEPENDS = :texlive_base-*:print/texlive/base + +USE_X11 = Yes +USE_GMAKE = Yes + +NO_REGRESS = Yes + +do-configure: + cd ${WRKSRC} && qmake4 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/texworks ${PREFIX}/bin + +.include diff --git a/editors/texworks/distinfo b/editors/texworks/distinfo new file mode 100644 index 00000000000..e1497da1f04 --- /dev/null +++ b/editors/texworks/distinfo @@ -0,0 +1,5 @@ +MD5 (texworks-svn-20090618.tar.gz) = A0uC87Ld9MvK2dnx78pOXw== +RMD160 (texworks-svn-20090618.tar.gz) = /wDSqWDqQqTrWZBfps8qjh3cZng= +SHA1 (texworks-svn-20090618.tar.gz) = SIiUy7S7Noe1BW/UKD2eZBBT5Ng= +SHA256 (texworks-svn-20090618.tar.gz) = YZaDip9gwh6Pxsq7Mkq7bG5k9nb5sJYYb/5MjEhL/Ls= +SIZE (texworks-svn-20090618.tar.gz) = 1587862 diff --git a/editors/texworks/patches/patch-src_TWUtils_cpp b/editors/texworks/patches/patch-src_TWUtils_cpp new file mode 100644 index 00000000000..ca43227e49b --- /dev/null +++ b/editors/texworks/patches/patch-src_TWUtils_cpp @@ -0,0 +1,14 @@ +$OpenBSD: patch-src_TWUtils_cpp,v 1.1.1.1 2009/06/22 20:51:10 sthen Exp $ +--- src/TWUtils.cpp.orig Wed Jun 17 13:46:06 2009 ++++ src/TWUtils.cpp Wed Jun 17 13:47:38 2009 +@@ -81,7 +81,9 @@ const QString TWUtils::getLibraryPath(const QString& s + #endif + #ifdef Q_WS_X11 + if (subdir == "dictionaries") +- libPath = "/usr/share/myspell/dicts"; ++ // OpenBSD mozilla dictionary paths ++ // libPath = "/usr/share/myspell/dicts"; ++ libPath = "/usr/local/share/mozilla-dicts"; + else + libPath = QDir::homePath() + "/." + TEXWORKS_NAME + "/" + subdir; + #endif diff --git a/editors/texworks/pkg/DESCR b/editors/texworks/pkg/DESCR new file mode 100644 index 00000000000..596ca9f8a22 --- /dev/null +++ b/editors/texworks/pkg/DESCR @@ -0,0 +1,7 @@ +The TeXworks project is an effort to build a simple TeX front-end +program (working environment) that will be available for all today's +major desktop operating systems-in particular, MS Windows (XP and +Vista), typical GNU/Linux distros and other X11-based systems, and Mac +OS X. It is deliberately modeled on Dick Koch's award-winning TeXShop +for Mac OS X, which is credited with a resurgence of TeX usage on the +Mac platform. diff --git a/editors/texworks/pkg/PLIST b/editors/texworks/pkg/PLIST new file mode 100644 index 00000000000..f0d1e35ca96 --- /dev/null +++ b/editors/texworks/pkg/PLIST @@ -0,0 +1,2 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/06/22 20:51:10 sthen Exp $ +@bin bin/texworks