diff options
author | Beech Rintoul <beech@FreeBSD.org> | 2008-01-02 22:23:28 +0000 |
---|---|---|
committer | Beech Rintoul <beech@FreeBSD.org> | 2008-01-02 22:23:28 +0000 |
commit | 499d5c44c2c30db374a9a12f4c25246ae7f0174d (patch) | |
tree | 276cdcd9ad29869b0c529be3020beb0984908943 /editors/xmlcopyeditor/files | |
parent | - Update to 4.14.12 and unbreak for now (diff) |
- New port xmlcopyeditor-1.1.0.3
- XML Copy Editor is a fast validating XML editor.
Features:
* DTD/XML Schema/RELAX NG validation
* XSLT
* XPath
* Pretty-printing
* Syntax highlighting
* Folding
* Tag completion
* Tag locking
* Tag-free editing
* Spelling and style check
* Built-in support for XHTML, XSL, DocBook and TEI
PR: ports/118483
Submitted by: Jose Garcia Juanino <jjuanino@gmail.com> (maintainer)
Approved by: linimon (mentor)
Notes
Notes:
svn path=/head/; revision=204867
Diffstat (limited to 'editors/xmlcopyeditor/files')
6 files changed, 184 insertions, 0 deletions
diff --git a/editors/xmlcopyeditor/files/patch-aclocal.m4.diff b/editors/xmlcopyeditor/files/patch-aclocal.m4.diff new file mode 100644 index 000000000000..050d19fb31f8 --- /dev/null +++ b/editors/xmlcopyeditor/files/patch-aclocal.m4.diff @@ -0,0 +1,83 @@ +--- aclocal.m4.orig Thu Dec 20 19:29:53 2007 ++++ aclocal.m4 Thu Dec 20 19:30:48 2007 +@@ -7243,3 +7243,80 @@ + ]) # _AM_PROG_TAR + + ++# --------------------------------------------------------------------------- ++# test for availability of iconv() ++# --------------------------------------------------------------------------- ++ ++# From Bruno Haible. ++ ++AC_DEFUN([AM_ICONV], ++[ ++ # Some systems have iconv in libc, some have it in libiconv (OSF/1 and ++ # those with the standalone portable GNU libiconv installed). ++ ++ AC_ARG_WITH([libiconv-prefix], ++[ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [ ++ for dir in `echo "$withval" | tr : ' '`; do ++ if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi ++ if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi ++ done ++ ]) ++ ++ AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ ++ am_cv_func_iconv="no, consider installing GNU libiconv" ++ am_cv_lib_iconv=no ++ AC_TRY_LINK([#include <stdlib.h> ++#include <iconv.h>], ++ [iconv_t cd = iconv_open("",""); ++ iconv(cd,NULL,NULL,NULL,NULL); ++ iconv_close(cd);], ++ am_cv_func_iconv=yes) ++ if test "$am_cv_func_iconv" != yes; then ++ am_save_LIBS="$LIBS" ++ LIBS="$LIBS -liconv" ++ AC_TRY_LINK([#include <stdlib.h> ++#include <iconv.h>], ++ [iconv_t cd = iconv_open("",""); ++ iconv(cd,NULL,NULL,NULL,NULL); ++ iconv_close(cd);], ++ am_cv_lib_iconv=yes ++ am_cv_func_iconv=yes) ++ LIBS="$am_save_LIBS" ++ fi ++ ]) ++ if test "$am_cv_func_iconv" = yes; then ++ AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) ++ AC_CACHE_CHECK([if iconv needs const], wx_cv_func_iconv_const, ++ AC_TRY_COMPILE([ ++#include <stdlib.h> ++#include <iconv.h> ++extern ++#ifdef __cplusplus ++"C" ++#endif ++#if defined(__STDC__) || defined(__cplusplus) ++size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); ++#else ++size_t iconv(); ++#endif ++ ], ++ [], ++ wx_cv_func_iconv_const="no", ++ wx_cv_func_iconv_const="yes" ++ ) ++ ) ++ ++ iconv_const= ++ if test "x$wx_cv_func_iconv_const" = "xyes"; then ++ iconv_const="const" ++ fi ++ ++ AC_DEFINE_UNQUOTED(ICONV_CONST, $iconv_const, ++ [Define as const if the declaration of iconv() needs const.]) ++ fi ++ LIBICONV= ++ if test "$am_cv_lib_iconv" = yes; then ++ LIBICONV="-liconv" ++ fi ++ AC_SUBST(LIBICONV) ++]) diff --git a/editors/xmlcopyeditor/files/patch-configure.in.diff b/editors/xmlcopyeditor/files/patch-configure.in.diff new file mode 100644 index 000000000000..014784eba2da --- /dev/null +++ b/editors/xmlcopyeditor/files/patch-configure.in.diff @@ -0,0 +1,12 @@ +--- configure.in.orig Thu Dec 20 16:54:28 2007 ++++ configure.in Thu Dec 20 16:56:11 2007 +@@ -35,6 +35,9 @@ + # Call WXTEST func + WXTEST + ++# Call iconv checks ++AM_ICONV ++ + # Verify minimus requires + vers=`echo $wxversion | $AWK 'BEGIN { FS = "."; } { printf "% d", ($1 * 1000 + $2) * 1000 + $3;}'` + if test -n "$vers" && test "$vers" -ge 2008000; then diff --git a/editors/xmlcopyeditor/files/patch-src_Makefile.am.diff b/editors/xmlcopyeditor/files/patch-src_Makefile.am.diff new file mode 100644 index 000000000000..8d5fd7a97148 --- /dev/null +++ b/editors/xmlcopyeditor/files/patch-src_Makefile.am.diff @@ -0,0 +1,45 @@ +--- src/Makefile.am.orig Tue Jan 1 12:20:45 2008 ++++ src/Makefile.am Tue Jan 1 12:21:28 2008 +@@ -9,8 +9,8 @@ + bin_PROGRAMS = xmlcopyeditor + bindir = ${prefix}/bin + xmlcopyeditordir = ${prefix}/share/xmlcopyeditor +-pixmapdir = /usr/share/pixmaps +-applicationsdir = /usr/share/applications ++pixmapdir = ${prefix}/share/pixmaps ++applicationsdir = ${prefix}/share/applications + + # the application source, library search path, and link libraries + xmlcopyeditor_SOURCES = xmlcopyeditor.cpp associatedialog.cpp casehandler.cpp \ +@@ -41,15 +41,13 @@ + xpm/*.xpm \ + templates/*.* \ + help/*.* help/html/*.* \ +- copying/*.txt copying/boost_shared_ptr/* \ +- copying/Expat/* copying/libxml2/* copying/libxslt/* \ +- copying/PCRE/* copying/Scintilla/* \ +- copying/scowl/* \ +- copying/wxStyledTextCtrl/* copying/ximian/* \ +- copying/wxStEditor/* \ +- copying/xmlcopyeditor/* \ +- copying/Apache/LICENSE-2.0 \ +- copying/Apache/LICENSE-2_files/* \ ++ copying/boost_license_1_0.txt copying/boost_shared_ptr/* \ ++ copying/scowl/copying.txt \ ++ copying/mit.txt \ ++ copying/libxslt/libxslt-lic.txt \ ++ copying/libxml2/libxml2-lic.txt \ ++ copying/Scintilla/scintilla-lic.txt \ ++ copying/Expat/copying.txt \ + po/sk/messages.mo \ + po/sv/messages.mo \ + po/fr/messages.mo \ +@@ -58,7 +56,7 @@ + po/zh_TW/messages.mo \ + po/uk_UA/messages.mo \ + po/uk_UA/messages.mo \ +- po/en_us/messages.po \ ++ po/en_us/messages.po + + pixmap_DATA = xmlcopyeditor.png + diff --git a/editors/xmlcopyeditor/files/patch-src_xmlcopyeditor.cpp.diff b/editors/xmlcopyeditor/files/patch-src_xmlcopyeditor.cpp.diff new file mode 100644 index 000000000000..7c072324ad38 --- /dev/null +++ b/editors/xmlcopyeditor/files/patch-src_xmlcopyeditor.cpp.diff @@ -0,0 +1,26 @@ +--- src/xmlcopyeditor.cpp.orig Thu Dec 20 19:39:44 2007 ++++ src/xmlcopyeditor.cpp Thu Dec 20 19:42:26 2007 +@@ -2977,10 +2977,7 @@ + + nconv = iconv ( + cd, +-#ifdef __WXMSW__ +- ( const char ** ) +-#endif +- &docBuffer, ++ ICONV_CHAR_CAST(&docBuffer), + &docBufferLeft, + &iconvBuffer, + &iconvBufferLeft ); +@@ -4685,10 +4682,7 @@ + + nconv = iconv ( + cd, +-#ifdef __WXMSW__ +- ( const char ** ) +-#endif +- &utf8BufferPtr, ++ ICONV_CHAR_CAST(&utf8BufferPtr), + &utf8BufferLeft, + &iconvBuffer, + &iconvBufferLeft ); diff --git a/editors/xmlcopyeditor/files/patch-src_xmlcopyeditor.h.diff b/editors/xmlcopyeditor/files/patch-src_xmlcopyeditor.h.diff new file mode 100644 index 000000000000..15e95cf2ca24 --- /dev/null +++ b/editors/xmlcopyeditor/files/patch-src_xmlcopyeditor.h.diff @@ -0,0 +1,10 @@ +--- src/xmlcopyeditor.h.orig Thu Dec 20 19:39:44 2007 ++++ src/xmlcopyeditor.h Thu Dec 20 19:40:47 2007 +@@ -21,6 +21,7 @@ + #define XMLCOPYEDITOR_H + + #define NEWFINDREPLACE 1 ++#define ICONV_CHAR_CAST(x) ((ICONV_CONST char **)(x)) + + #include <wx/wx.h> + #include <wx/fdrepdlg.h> diff --git a/editors/xmlcopyeditor/files/pkg-message.in b/editors/xmlcopyeditor/files/pkg-message.in new file mode 100644 index 000000000000..bb829a351842 --- /dev/null +++ b/editors/xmlcopyeditor/files/pkg-message.in @@ -0,0 +1,8 @@ +************************************************************************ +Note for XML docbook users: + + 1) In Edit->Preferences menu change "Application directory" text box to + "%%LOCALBASE%%/share/xsl". + + 2) Install textproc/docbook-xml port. +************************************************************************ |