diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2014-02-27 15:20:09 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2014-02-27 15:20:09 +0000 |
commit | efd4784754c90e3492b07cdca65fdc0a4c8f6ed4 (patch) | |
tree | ddd8c1a14912e5dee0b1546215b9f6c2ebf7e48c /editors/xvile | |
parent | f4b4df04fa6fda4a44cdb89865ba1a6ad8110e28 (diff) | |
download | ports-efd4784754c90e3492b07cdca65fdc0a4c8f6ed4.tar.gz ports-efd4784754c90e3492b07cdca65fdc0a4c8f6ed4.zip |
Notes
Diffstat (limited to 'editors/xvile')
-rw-r--r-- | editors/xvile/Makefile | 90 | ||||
-rw-r--r-- | editors/xvile/distinfo | 4 | ||||
-rw-r--r-- | editors/xvile/files/patch-x11menu.c | 24 | ||||
-rw-r--r-- | editors/xvile/files/patch-x11vile.h | 22 | ||||
-rw-r--r-- | editors/xvile/pkg-plist | 15 |
5 files changed, 104 insertions, 51 deletions
diff --git a/editors/xvile/Makefile b/editors/xvile/Makefile index 2a4f10a520b2..b65e21ed7bc4 100644 --- a/editors/xvile/Makefile +++ b/editors/xvile/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= xvile -PORTVERSION= 9.8k +PORTVERSION= 9.8l CATEGORIES= editors MASTER_SITES= ftp://dickey.his.com/vile/current/ \ ftp://invisible-island.net/vile/current/ @@ -17,14 +17,7 @@ COMMENT= VI Like Emacs -- X11 version LICENSE= GPLv2 -OPTIONS_DEFINE= FILTERS ICONV PERL DOCS -OPTIONS_RADIO= MENUS -OPTIONS_RADIO_MENUS= MOTIF XAW XAW3D -OPTIONS_DEFAULT= ICONV -FILTERS_DESC= Loadable filters -MENUS_DESC= Support for menus -XAW_DESC= X Athena Widgets -XAW3D_DESC= X Athena Widgets with 3D effect +BUILD_DEPENDS= reflex:${PORTSDIR}/textproc/reflex USES= pkgconfig shebangfix SHEBANG_FILES= macros/lxvile macros/lxvile-fonts perl/vileget @@ -40,68 +33,67 @@ DATADIR= ${PREFIX}/share/vile CONFLICTS_INSTALL= vile-[0-9]* +OPTIONS_DEFINE= DOCS FILTERS ICONV PERL +OPTIONS_RADIO= MENUS +OPTIONS_RADIO_MENUS= MOTIF XAW XAW3D +OPTIONS_DEFAULT= ICONV +OPTIONS_SUB= yes + +FILTERS_DESC= Loadable filters +FILTERS_CONFIGURE_WITH= loadable-filters +ICONV_USES= iconv +ICONV_CONFIGURE_ON= --with-iconv ${ICONV_CONFIGURE_ARG} +ICONV_CONFIGURE_OFF= --without-iconv --without-locale +MENUS_DESC= Support for menus +MOTIF_USE= MOTIF=yes +MOTIF_CONFIGURE_ON= --with-screen=motif +PERL_USES= perl5 +PERL_CONFIGURE_WITH= perl +XAW_DESC= X Athena Widgets +XAW_USE= XORG=xaw +XAW_CONFIGURE_ON= --with-screen=athena +XAW3D_DESC= X Athena Widgets with 3D effect +XAW3D_LIB_DEPENDS= libXaw3d.so:${PORTSDIR}/x11-toolkits/Xaw3d +XAW3D_CONFIGURE_ON= --enable-colored-menus \ + --with-Xaw3d \ + --with-screen=xaw3d + .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MFILTERS} -CONFIGURE_ARGS+= --with-loadable-filters PLIST_SUB+= SO_EXT=".so" .else PLIST_SUB+= SO_EXT="" .endif -.if ${PORT_OPTIONS:MICONV} -USES+= iconv -CONFIGURE_ARGS+= --with-iconv ${ICONV_CONFIGURE_ARG} -PLIST_SUB+= ICONV="" -.else +.if empty(PORT_OPTIONS:MICONV) BROKEN= Does not build if ICONV support is disabled -CONFIGURE_ARGS+= --without-iconv --without-locale -PLIST_SUB+= ICONV="@comment " -.endif - -.if ${PORT_OPTIONS:MPERL} -USES+= perl5 -CONFIGURE_ARGS+= --with-perl -PLIST_SUB+= PERL="" -.else -PLIST_SUB+= PERL="@comment " .endif .if empty(PORT_OPTIONS:MMOTIF) && empty(PORT_OPTIONS:MXAW) && empty(PORT_OPTIONS:MXAW3D) CONFIGURE_ARGS+= --with-screen=x11 .endif -.if ${PORT_OPTIONS:MMOTIF} -USES+= motif -CONFIGURE_ARGS+= --with-screen=motif -.endif - -.if ${PORT_OPTIONS:MXAW} -USE_XORG+= xaw -CONFIGURE_ARGS+= --with-screen=athena -.endif - -.if ${PORT_OPTIONS:MXAW3D} -LIB_DEPENDS+= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d -CONFIGURE_ARGS+= --enable-colored-menus \ - --with-Xaw3d \ - --with-screen=xaw3d -.endif - post-patch: @${REINPLACE_CMD} -e \ 's|^DOCDIR|#DOCDIR|' ${WRKSRC}/makefile.in @${REINPLACE_CMD} -e \ - 's|defined(FLEX_BETA)|0|' ${WRKSRC}/filters/filters.h + '/^Icons/s|=.*|=${PREFIX}/share/pixmaps/vile_48x48.png|' \ + ${WRKSRC}/macros/*.desktop post-install: + (cd ${WRKSRC}/icons && ${INSTALL_DATA} vile_48x48.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps) + (cd ${WRKSRC}/macros && ${INSTALL_DATA} *.desktop \ + ${STAGEDIR}${DESKTOPDIR}) @${MKDIR} ${STAGEDIR}${DATADIR}/macros - ${INSTALL_DATA} ${WRKSRC}/macros/*.rc ${STAGEDIR}${DATADIR}/macros - @${MKDIR} ${STAGEDIR}${DESKTOPDIR} - ${INSTALL_DATA} ${WRKSRC}/macros/*.desktop ${STAGEDIR}${DESKTOPDIR} -.if ${PORT_OPTIONS:MDOCS} + (cd ${WRKSRC}/macros && ${INSTALL_DATA} *.rc \ + ${STAGEDIR}${DATADIR}/macros) @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/*.doc ${STAGEDIR}${DOCSDIR} -.endif + (cd ${WRKSRC}/doc && ${INSTALL_DATA} *.doc \ + ${STAGEDIR}${DOCSDIR}) + @${MKDIR} ${STAGEDIR}${DOCSDIR}/html + (cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html \ + ${STAGEDIR}${DOCSDIR}/html) .include <bsd.port.mk> diff --git a/editors/xvile/distinfo b/editors/xvile/distinfo index a0d272611d79..d8bfbc9ed68e 100644 --- a/editors/xvile/distinfo +++ b/editors/xvile/distinfo @@ -1,2 +1,2 @@ -SHA256 (vile-9.8k.tgz) = af8386a43fdf82ba3c8e4187b8fe850543c5baac769cf26bb2b437e5b3689e24 -SIZE (vile-9.8k.tgz) = 2278349 +SHA256 (vile-9.8l.tgz) = 2da06d7e949baa8541dc8ddd5e2d782346bbdaf59c9e564c1e8fedcc3a9bf59c +SIZE (vile-9.8l.tgz) = 2289659 diff --git a/editors/xvile/files/patch-x11menu.c b/editors/xvile/files/patch-x11menu.c new file mode 100644 index 000000000000..46523bb3b00c --- /dev/null +++ b/editors/xvile/files/patch-x11menu.c @@ -0,0 +1,24 @@ +--- x11menu.c.orig ++++ x11menu.c +@@ -29,12 +29,21 @@ + #endif + + #if ATHENA_WIDGETS ++#ifdef HAVE_LIB_XAW3D ++#include <X11/Xaw3d/Form.h> ++#include <X11/Xaw3d/SimpleMenu.h> ++#include <X11/Xaw3d/MenuButton.h> ++#include <X11/Xaw3d/SmeLine.h> ++#include <X11/Xaw3d/SmeBSB.h> ++#endif ++#ifdef HAVE_LIB_XAW + #include <X11/Xaw/Form.h> + #include <X11/Xaw/SimpleMenu.h> + #include <X11/Xaw/MenuButton.h> + #include <X11/Xaw/SmeLine.h> + #include <X11/Xaw/SmeBSB.h> + #endif ++#endif + + #define Nval(name,value) name, (XtArgVal)(value) + #define Sval(name,value) name, (value) diff --git a/editors/xvile/files/patch-x11vile.h b/editors/xvile/files/patch-x11vile.h new file mode 100644 index 000000000000..cc2f89e0f5c5 --- /dev/null +++ b/editors/xvile/files/patch-x11vile.h @@ -0,0 +1,22 @@ +--- x11vile.h.orig 2013-04-15 04:09:08.000000000 +0900 ++++ x11vile.h 2014-02-01 21:50:00.000000000 +0900 +@@ -282,11 +282,19 @@ + + #if OPT_MENUS + #if ATHENA_WIDGETS ++#ifdef HAVE_LIB_XAW3D ++#include <X11/Xaw3d/SimpleMenu.h> ++#include <X11/Xaw3d/Box.h> ++#include <X11/Xaw3d/Form.h> ++#include <X11/Xaw3d/Paned.h> ++#endif ++#ifdef HAVE_LIB_XAW + #include <X11/Xaw/SimpleMenu.h> + #include <X11/Xaw/Box.h> + #include <X11/Xaw/Form.h> + #include <X11/Xaw/Paned.h> + #endif ++#endif + #if MOTIF_WIDGETS + #include <Xm/RowColumn.h> + #endif diff --git a/editors/xvile/pkg-plist b/editors/xvile/pkg-plist index bfbcaed735e4..2d6cfeb53db9 100644 --- a/editors/xvile/pkg-plist +++ b/editors/xvile/pkg-plist @@ -96,6 +96,19 @@ share/applications/xvile.desktop %%PORTDOCS%%%%DOCSDIR%%/config.doc %%PORTDOCS%%%%DOCSDIR%%/dir.doc %%PORTDOCS%%%%DOCSDIR%%/filters.doc +%%PORTDOCS%%%%DOCSDIR%%/html/Vileserv.html +%%PORTDOCS%%%%DOCSDIR%%/html/config.html +%%PORTDOCS%%%%DOCSDIR%%/html/dir.html +%%PORTDOCS%%%%DOCSDIR%%/html/filters.html +%%PORTDOCS%%%%DOCSDIR%%/html/macros.html +%%PORTDOCS%%%%DOCSDIR%%/html/menus.html +%%PORTDOCS%%%%DOCSDIR%%/html/modes.html +%%PORTDOCS%%%%DOCSDIR%%/html/oleauto.html +%%PORTDOCS%%%%DOCSDIR%%/html/perl.html +%%PORTDOCS%%%%DOCSDIR%%/html/vile-hlp.html +%%PORTDOCS%%%%DOCSDIR%%/html/vile-man.html +%%PORTDOCS%%%%DOCSDIR%%/html/vile-toc.html +%%PORTDOCS%%%%DOCSDIR%%/html/visvile.html %%PORTDOCS%%%%DOCSDIR%%/macros.doc %%PORTDOCS%%%%DOCSDIR%%/menus.doc %%PORTDOCS%%%%DOCSDIR%%/modes.doc @@ -256,9 +269,11 @@ share/pixmaps/vile.xpm %%DATADIR%%/xsl.keywords %%DATADIR%%/yacc.keywords %%DATADIR%%/zsh.keywords +share/pixmaps/vile_48x48.png %%PERL%%@dirrm %%DATADIR%%/perl/Vile %%PERL%%@dirrm %%DATADIR%%/perl @dirrm %%DATADIR%%/macros @dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%%/html %%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm lib/vile |