update to 0.4.0 with MULTI_PACKAGES for new scripting backends.
OK sthen@ on the condition that the update path works, which it does ;)
This commit is contained in:
parent
8aa7922499
commit
55c4653f29
@ -1,9 +1,18 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2010/11/15 23:22:07 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2011/04/20 22:16:25 edd Exp $
|
||||
|
||||
COMMENT = easy to use LaTeX and ConTeXt editor
|
||||
COMMENT-main = easy to use LaTeX and ConTeXt editor
|
||||
COMMENT-python = Python scripting for TeXworks
|
||||
COMMENT-lua = Lua scripting for TeXworks
|
||||
|
||||
V = 0.4.0
|
||||
DISTNAME = texworks-${V}-r759
|
||||
|
||||
PKGNAME-main = texworks-${V}
|
||||
PKGNAME-lua = texworks-lua-${V}
|
||||
PKGNAME-python = texworks-python-${V}
|
||||
|
||||
WRKDIST = ${WRKDIR}/texworks-${V}
|
||||
|
||||
DISTNAME = texworks-0.2.3
|
||||
REVISION = 0
|
||||
CATEGORIES = editors print
|
||||
HOMEPAGE = http://www.tug.org/texworks/
|
||||
MAINTAINER = Edd Barrett <edd@openbsd.org>
|
||||
@ -14,28 +23,66 @@ PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM =Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB += QtDBus QtGui QtXml c dbus-1 hunspell-1.2 m poppler \
|
||||
poppler-qt4 pthread stdc++ z
|
||||
CONFIGURE_STYLE = simple
|
||||
MODULES = x11/qt4 \
|
||||
lang/python \
|
||||
lang/lua
|
||||
|
||||
SHARED_ONLY = Yes
|
||||
WANTLIB += QtDBus QtGui QtScript QtScriptTools QtXml c \
|
||||
hunspell-1.2 m poppler poppler-qt4 pthread stdc++ z
|
||||
WANTLIB-lua = QtCore QtGui QtXml lua m stdc++
|
||||
WANTLIB-python = QtCore QtGui QtXml ${MODPY_WANTLIB} stdc++ m
|
||||
|
||||
MULTI_PACKAGES = -main -lua -python
|
||||
|
||||
MASTER_SITES = http://texworks.googlecode.com/files/
|
||||
|
||||
MODULES = x11/qt4
|
||||
LIB_DEPENDS = textproc/hunspell \
|
||||
LIB_DEPENDS-main = qt4->=4.7.2:${MODQT4_LIB_DEPENDS} \
|
||||
textproc/hunspell \
|
||||
x11/dbus \
|
||||
print/poppler,-qt4
|
||||
RUN_DEPENDS = print/texlive/base
|
||||
LIB_DEPENDS-lua = ${MODQT4_LIB_DEPENDS} \
|
||||
lang/lua
|
||||
LIB_DEPENDS-python = ${MODQT4_LIB_DEPENDS} \
|
||||
${MODPY_LIB_DEPENDS}
|
||||
|
||||
RUN_DEPENDS-main = print/texlive/base \
|
||||
devel/desktop-file-utils
|
||||
RUN_DEPENDS-lua = editors/texworks,-main
|
||||
RUN_DEPENDS-python = editors/texworks,-main
|
||||
|
||||
USE_GMAKE = Yes
|
||||
|
||||
NO_REGRESS = Yes
|
||||
VMEM_WARNING = Yes
|
||||
|
||||
SUBST_VARS += WRKINST
|
||||
|
||||
PLUGIN_SRC = ${WRKSRC}/plugins-src
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/src/TWUtils.cpp
|
||||
${SUBST_CMD} ${WRKSRC}/TeXworks.pro
|
||||
${SUBST_CMD} ${PLUGIN_SRC}/TWLuaPlugin/TWLuaPlugin.pro
|
||||
${SUBST_CMD} ${PLUGIN_SRC}/TWPythonPlugin/TWPythonPlugin.pro
|
||||
|
||||
do-configure:
|
||||
cd ${PLUGIN_SRC}/TWPythonPlugin && qmake4
|
||||
cd ${PLUGIN_SRC}/TWLuaPlugin && qmake4
|
||||
cd ${WRKSRC} && qmake4
|
||||
|
||||
# build plugins first
|
||||
pre-build:
|
||||
cd ${PLUGIN_SRC}/TWPythonPlugin && ${MAKE_PROGRAM}
|
||||
cd ${PLUGIN_SRC}/TWLuaPlugin && ${MAKE_PROGRAM}
|
||||
|
||||
# install main stuff and then plugins
|
||||
INSTALL_PATHS = ${WRKSRC} \
|
||||
${PLUGIN_SRC}/TWPythonPlugin \
|
||||
${PLUGIN_SRC}/TWLuaPlugin
|
||||
|
||||
# note: install does not depend upon fake env or fake flags
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/texworks ${PREFIX}/bin
|
||||
for i in ${INSTALL_PATHS}; do \
|
||||
cd $$i && ${MAKE_PROGRAM} -f ${MAKE_FILE} ${FAKE_TARGET}; \
|
||||
done
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,5 +1,5 @@
|
||||
MD5 (texworks-0.2.3.tar.gz) = /rh/25ByXdt132lWZWJT/g==
|
||||
RMD160 (texworks-0.2.3.tar.gz) = b1DcETH4+mFLdyC79gNmZapMr74=
|
||||
SHA1 (texworks-0.2.3.tar.gz) = Tg4XTPhSTELhNH8qqLrXt4Aaqos=
|
||||
SHA256 (texworks-0.2.3.tar.gz) = iBOqnb1OcW1fQeVFEyPTOLwFIcJgwVaBoVn0Hcl+5H8=
|
||||
SIZE (texworks-0.2.3.tar.gz) = 1898960
|
||||
MD5 (texworks-0.4.0-r759.tar.gz) = iq/66ZklO3zOalYxvLoyTA==
|
||||
RMD160 (texworks-0.4.0-r759.tar.gz) = PP+93b13cSV2yvmy/6gG53ydicc=
|
||||
SHA1 (texworks-0.4.0-r759.tar.gz) = rfhl9jxFfcX3KofHe7Qe70pjVm4=
|
||||
SHA256 (texworks-0.4.0-r759.tar.gz) = tOSYzHM7pX9i770v0pEZw2g0Lv9xTm6WCyayOvIufk0=
|
||||
SIZE (texworks-0.4.0-r759.tar.gz) = 5018740
|
||||
|
46
editors/texworks/patches/patch-TeXworks_pro
Normal file
46
editors/texworks/patches/patch-TeXworks_pro
Normal file
@ -0,0 +1,46 @@
|
||||
$OpenBSD: patch-TeXworks_pro,v 1.1 2011/04/20 22:16:25 edd Exp $
|
||||
--- TeXworks.pro.orig Sat Mar 19 16:12:51 2011
|
||||
+++ TeXworks.pro Thu Apr 14 18:20:45 2011
|
||||
@@ -96,6 +96,10 @@ unix:!macx { # on Unix-ish platforms we rely on pkgcon
|
||||
# gets expanded to " in the c++ code)
|
||||
QMAKE_CXXFLAGS += -DTW_HELPPATH=\\\"/usr/local/share/texworks-help\\\"
|
||||
QMAKE_CXXFLAGS += -DTW_PLUGINPATH=\\\"/usr/local/lib/texworks\\\"
|
||||
+}
|
||||
+
|
||||
+# openbsd uses the mozilla dicts
|
||||
+unix:!openbsd-g++* {
|
||||
QMAKE_CXXFLAGS += -DTW_DICPATH=\\\"/usr/share/myspell/dicts\\\"
|
||||
}
|
||||
|
||||
@@ -107,10 +111,11 @@ linux-g++ {
|
||||
LIBS += -lz
|
||||
}
|
||||
|
||||
-openbsd-g++ {
|
||||
+openbsd-g++* {
|
||||
# Same bug exists in OpenBSD/qt4
|
||||
LIBS += -lQtDBus
|
||||
INCLUDEPATH += /usr/local/include/X11/qt4/QtDBus
|
||||
+ QMAKE_CXXFLAGS += -DTW_DICPATH=\\\"${LOCALBASE}/share/mozilla-dicts\\\"
|
||||
}
|
||||
|
||||
win32 { # paths here are specific to my setup
|
||||
@@ -224,13 +229,17 @@ TRANSLATIONS += trans/TeXworks_af.ts \
|
||||
trans/TeXworks_tr.ts \
|
||||
trans/TeXworks_zh_CN.ts
|
||||
|
||||
+# OpenBSD ports specific
|
||||
+INSTALL_PREFIX = ${WRKINST}/${PREFIX}
|
||||
+
|
||||
unix:!macx { # installation on Unix-ish platforms
|
||||
isEmpty(INSTALL_PREFIX):INSTALL_PREFIX = /usr/local
|
||||
isEmpty(BIN_DIR):BIN_DIR = $$INSTALL_PREFIX/bin
|
||||
isEmpty(DATA_DIR):DATA_DIR = $$INSTALL_PREFIX/share
|
||||
isEmpty(DOCS_DIR):DOCS_DIR = $$DATA_DIR/doc/texworks
|
||||
isEmpty(ICON_DIR):ICON_DIR = $$DATA_DIR/pixmaps
|
||||
- isEmpty(MAN_DIR):MAN_DIR = $$DATA_DIR/man/man1
|
||||
+ #isEmpty(MAN_DIR):MAN_DIR = $$DATA_DIR/man/man1
|
||||
+ isEmpty(MAN_DIR):MAN_DIR = $$INSTALL_PREFIX/man/man1
|
||||
isEmpty(DESKTOP_DIR):DESKTOP_DIR = $$DATA_DIR/applications
|
||||
|
||||
target.path = $$BIN_DIR
|
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-plugins-src_TWLuaPlugin_TWLuaPlugin_pro,v 1.1 2011/04/20 22:16:25 edd Exp $
|
||||
--- plugins-src/TWLuaPlugin/TWLuaPlugin.pro.orig Wed Mar 2 19:25:55 2011
|
||||
+++ plugins-src/TWLuaPlugin/TWLuaPlugin.pro Sat Apr 16 19:42:23 2011
|
||||
@@ -44,11 +44,16 @@ macx {
|
||||
INCLUDEPATH += /usr/local/include
|
||||
}
|
||||
|
||||
+openbsd-g++* {
|
||||
+ LIBS += -L${LOCALBASE}/lib -llua
|
||||
+}
|
||||
+
|
||||
+
|
||||
unix:!macx { # on Unix-ish platforms we rely on pkgconfig
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += lua5.1
|
||||
|
||||
- target.path = /usr/local/lib/texworks
|
||||
+ target.path = ${WRKINST}/${PREFIX}/lib/texworks
|
||||
INSTALLS += target
|
||||
}
|
||||
|
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-plugins-src_TWPythonPlugin_TWPythonPlugin_pro,v 1.1 2011/04/20 22:16:25 edd Exp $
|
||||
--- plugins-src/TWPythonPlugin/TWPythonPlugin.pro.orig Wed Mar 2 19:25:55 2011
|
||||
+++ plugins-src/TWPythonPlugin/TWPythonPlugin.pro Sat Apr 16 19:42:37 2011
|
||||
@@ -55,8 +55,12 @@ unix:!macx { # on Unix-ish platforms we should rely on
|
||||
|
||||
QMAKE_CXXFLAGS += -fno-strict-aliasing
|
||||
|
||||
- target.path = /usr/local/lib/texworks
|
||||
+ target.path = ${WRKINST}/${PREFIX}/lib/texworks
|
||||
INSTALLS += target
|
||||
+}
|
||||
+
|
||||
+openbsd-g++* {
|
||||
+ INCLUDEPATH += ${LOCALBASE}/include/python${MODPY_VERSION}/
|
||||
}
|
||||
|
||||
win32 { # paths here are specific to my setup
|
@ -1,14 +0,0 @@
|
||||
$OpenBSD: patch-src_TWUtils_cpp,v 1.2 2009/06/23 08:30:00 ajacoutot 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 = "${LOCALBASE}/share/mozilla-dicts";
|
||||
else
|
||||
libPath = QDir::homePath() + "/." + TEXWORKS_NAME + "/" + subdir;
|
||||
#endif
|
1
editors/texworks/pkg/DESCR-lua
Normal file
1
editors/texworks/pkg/DESCR-lua
Normal file
@ -0,0 +1 @@
|
||||
Lua scripting backend for TeXworks.
|
1
editors/texworks/pkg/DESCR-python
Normal file
1
editors/texworks/pkg/DESCR-python
Normal file
@ -0,0 +1 @@
|
||||
Python scripting backend for TeXworks.
|
@ -1,2 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/06/22 20:51:10 sthen Exp $
|
||||
@bin bin/texworks
|
2
editors/texworks/pkg/PLIST-lua
Normal file
2
editors/texworks/pkg/PLIST-lua
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST-lua,v 1.1 2011/04/20 22:16:25 edd Exp $
|
||||
lib/texworks/libTWLuaPlugin.so
|
13
editors/texworks/pkg/PLIST-main
Normal file
13
editors/texworks/pkg/PLIST-main
Normal file
@ -0,0 +1,13 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.1 2011/04/20 22:16:25 edd Exp $
|
||||
@pkgpath editors/texworks
|
||||
@bin bin/texworks
|
||||
lib/texworks/
|
||||
@man man/man1/texworks.1
|
||||
share/applications/texworks.desktop
|
||||
share/doc/texworks/
|
||||
share/doc/texworks/COPYING
|
||||
share/doc/texworks/README
|
||||
share/pixmaps/
|
||||
share/pixmaps/TeXworks.png
|
||||
@exec %D/bin/update-desktop-database
|
||||
@unexec-delete %D/bin/update-desktop-database
|
2
editors/texworks/pkg/PLIST-python
Normal file
2
editors/texworks/pkg/PLIST-python
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PLIST-python,v 1.1 2011/04/20 22:16:25 edd Exp $
|
||||
lib/texworks/libTWPythonPlugin.so
|
Loading…
Reference in New Issue
Block a user