LyX 2.0.6 list of changes http://www.lyx.org/announce/2_0_6.txt

- mandoc works, no need for USE_GROFF
- added .desktop file
- installs provided .cls and .sty files in system-wide texmf-local

Tested on amd64.

diff -uNrx CVS /usr/ports/print/lyx/Makefile ports/print/lyx/Makefile
--- /usr/ports/print/lyx/Makefile       Sat Apr  6 05:29:45 2013
+++ ports/print/lyx/Makefile    Sat Dec  7 20:25:24 2013
@@ -2,8 +2,8 @@
 
 COMMENT=       graphical frontend for LaTeX (nearly WYSIWYG)
 
-DISTNAME=      lyx-2.0.4
-REVISION=      0
+DISTNAME=      lyx-2.0.6
+REVISION=
 CATEGORIES=    print editors
 
 HOMEPAGE=      http://www.lyx.org/
@@ -28,29 +28,36 @@
 WANTLIB += boost_regex-mt>=1 boost_signals-mt>=1
 WANTLIB += glib-2.0 gmodule-2.0 enchant
 
+NO_TEST=       Yes
 SEPARATE_BUILD=        Yes
 USE_GMAKE=     Yes
-USE_GROFF =    Yes
 
-CONFIGURE_STYLE=               gnu
+CONFIGURE_STYLE=       gnu
 
 CONFIGURE_ARGS=        --with-extra-lib="${X11BASE}/lib ${LOCALBASE}/lib" \
                --with-extra-inc="${X11BASE}/include ${LOCALBASE}/include" \
-               --without-aiksaurus \
                --without-hunspell \
                --without-included-boost \
                --enable-threads=posix
+
 CONFIGURE_ENV+=        PYTHON=${MODPY_BIN} MOC4=${MODQT4_MOC} 
UIC4=${MODQT4_UIC} \
                ac_cv_func_fork=yes LIBS=-pthread
 
 pre-configure:
        perl -pi -e "s,python -tt,${MODPY_BIN} -tt," \
-               ${WRKSRC}/src/support/os.cpp
+               ${WRKSRC}/src/support/os.cpp \
+               ${WRKSRC}/src/support/Systemcall.cpp
        perl -pi -e "s,#! ?/usr/bin/(env )?python,#!${MODPY_BIN}," \
                ${WRKSRC}/lib/lyx2lyx/lyx2lyx \
                ${WRKSRC}/lib/scripts/listerrors \
                ${WRKSRC}/src/graphics/GraphicsConverter.cpp
        find ${WRKSRC} -name "*.py" -print0 | xargs -0 \
                perl -pi -e "s,#! ?/usr/bin/(env )?python,#!${MODPY_BIN},"
+
+post-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
+       @${SUBST_CMD} -c ${FILESDIR}/lyx.desktop \
+               ${PREFIX}/share/applications/lyx.desktop
+       @chown ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/applications/lyx.desktop
 
 .include <bsd.port.mk>
diff -uNrx CVS /usr/ports/print/lyx/distinfo ports/print/lyx/distinfo
--- /usr/ports/print/lyx/distinfo       Wed Jan  2 12:29:49 2013
+++ ports/print/lyx/distinfo    Fri Dec  6 09:43:23 2013
@@ -1,2 +1,2 @@
-SHA256 (lyx-2.0.4.tar.gz) = j4a+A+0h3GpGFJSFK3gUdGbDuxZ3Kirfuc2m4gHDIH4=
-SIZE (lyx-2.0.4.tar.gz) = 19015175
+SHA256 (lyx-2.0.6.tar.gz) = 8GIcXuJbmLE7b1YULNgy6GExlwFmom1jPmTJWIbwvEU=
+SIZE (lyx-2.0.6.tar.gz) = 19067798
diff -uNrx CVS /usr/ports/print/lyx/files/lyx.desktop 
ports/print/lyx/files/lyx.desktop
--- /usr/ports/print/lyx/files/lyx.desktop      Wed Dec 31 16:00:00 1969
+++ ports/print/lyx/files/lyx.desktop   Fri Dec  6 09:36:41 2013
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=LyX
+Comment=graphical frontend for LaTeX (nearly WYSIWYG)
+Exec=lyx
+Icon=${TRUEPREFIX}/share/lyx/images/lyx.png
+Type=Application
+InitialPreference=15
+Terminal=false
+Categories=Qt;KDE;GNOME;Application;Office;
+StartupNotify=false
+MimeType=application/x-lyx;
diff -uNrx CVS /usr/ports/print/lyx/patches/patch-lib_Makefile_in 
ports/print/lyx/patches/patch-lib_Makefile_in
--- /usr/ports/print/lyx/patches/patch-lib_Makefile_in  Wed Dec 31 16:00:00 1969
+++ ports/print/lyx/patches/patch-lib_Makefile_in       Fri Dec  6 09:36:32 2013
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- lib/Makefile.in.orig       Thu Dec  5 18:54:50 2013
++++ lib/Makefile.in    Thu Dec  5 18:59:25 2013
+@@ -2023,7 +2023,7 @@ dist_thesistemplates_DATA = \
+       templates/thesis/thesis.lyx \
+       templates/thesis/thesisExample.bib
+ 
+-texdir = $(pkgdatadir)/tex
++texdir = ${LOCALBASE}/share/texmf-local/tex/latex/lyx
+ dist_tex_DATA = \
+       tex/broadway.cls \
+       tex/hollywood.cls \
diff -uNrx CVS /usr/ports/print/lyx/pkg/PLIST ports/print/lyx/pkg/PLIST
--- /usr/ports/print/lyx/pkg/PLIST      Wed Jan  2 12:29:49 2013
+++ ports/print/lyx/pkg/PLIST   Fri Dec  6 09:36:15 2013
@@ -7,6 +7,7 @@
 @man man/man1/lyx.1
 @man man/man1/lyxclient.1
 @man man/man1/tex2lyx.1
+share/applications/lyx.desktop
 share/locale/ar/LC_MESSAGES/lyx.mo
 share/locale/ca/LC_MESSAGES/lyx.mo
 share/locale/cs/LC_MESSAGES/lyx.mo
@@ -344,7 +345,9 @@
 share/lyx/examples/es/ItemizeBullets.lyx
 share/lyx/examples/es/ejemplo_con_lyx.lyx
 share/lyx/examples/es/ejemplo_sin_lyx.lyx
+share/lyx/examples/es/europeCV.lyx
 share/lyx/examples/es/linguistics.lyx
+share/lyx/examples/es/modernCV.lyx
 share/lyx/examples/es/multicol.lyx
 share/lyx/examples/es/splash.lyx
 share/lyx/examples/es/tufte-book.lyx
@@ -697,7 +700,6 @@
 share/lyx/images/classic/view-others.png
 share/lyx/images/close-tab-group.png
 share/lyx/images/closetab.png
-share/lyx/images/commands/
 share/lyx/images/copy.png
 share/lyx/images/cut.png
 share/lyx/images/demote.png
@@ -1486,6 +1488,7 @@
 share/lyx/layouts/amsbook.layout
 share/lyx/layouts/amsdefs.inc
 share/lyx/layouts/apa.layout
+share/lyx/layouts/apa6.layout
 share/lyx/layouts/arab-article.layout
 share/lyx/layouts/armenian-article.layout
 share/lyx/layouts/article-beamer.layout
@@ -1576,6 +1579,7 @@
 share/lyx/layouts/mwart.layout
 share/lyx/layouts/mwbk.layout
 share/lyx/layouts/mwrep.layout
+share/lyx/layouts/natbibapa.module
 share/lyx/layouts/noweb.module
 share/lyx/layouts/numarticle.inc
 share/lyx/layouts/numreport.inc
@@ -1764,6 +1768,7 @@
 share/lyx/templates/ACM-siggraph.lyx
 share/lyx/templates/ACM-sigplan.lyx
 share/lyx/templates/AEA.lyx
+share/lyx/templates/APA6.lyx
 share/lyx/templates/IEEEtran.lyx
 share/lyx/templates/JASA.lyx
 share/lyx/templates/JSS-article.lyx
@@ -1817,15 +1822,22 @@
 share/lyx/templates/thesis/chapter-2.lyx
 share/lyx/templates/thesis/thesis.lyx
 share/lyx/templates/thesis/thesisExample.bib
-share/lyx/tex/
-share/lyx/tex/broadway.cls
-share/lyx/tex/hollywood.cls
-share/lyx/tex/lyxchess.sty
-share/lyx/tex/lyxskak.sty
-share/lyx/tex/revtex.cls
 share/lyx/ui/
 share/lyx/ui/default.ui
 share/lyx/ui/stdcontext.inc
 share/lyx/ui/stdmenus.inc
 share/lyx/ui/stdtoolbars.inc
 share/lyx/unicodesymbols
+share/texmf-local/
+share/texmf-local/tex/
+share/texmf-local/tex/latex/
+share/texmf-local/tex/latex/lyx/
+share/texmf-local/tex/latex/lyx/broadway.cls
+share/texmf-local/tex/latex/lyx/hollywood.cls
+share/texmf-local/tex/latex/lyx/lyxchess.sty
+share/texmf-local/tex/latex/lyx/lyxskak.sty
+share/texmf-local/tex/latex/lyx/revtex.cls
+@exec %D/bin/mktexlsr %D/share/texmf-local > /dev/null 2>&1
+@unexec %D/bin/mktexlsr %D/share/texmf-local
+@exec %D/bin/update-desktop-database > /dev/null 2>&1
+@unexec-delete %D/bin/update-desktop-database

Reply via email to