diff options
author | Pacho Ramos <pacho@gentoo.org> | 2015-10-25 12:50:23 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2015-10-25 12:51:13 +0100 |
commit | 2bb3db1a1a28e3a76a5cde521f27298b1bd48562 (patch) | |
tree | f17d7e72aeb36c7ed4928784331ffc1e2bd81b6d /dev-lang/erlang | |
parent | d60bdfc70dea3ff2a3f21dbdffc48ab3dd96ff9b (diff) | |
download | gentoo-2bb3db1a1a28e3a76a5cde521f27298b1bd48562.tar.gz gentoo-2bb3db1a1a28e3a76a5cde521f27298b1bd48562.tar.xz |
dev-lang/erlang: Support wxGTK:3.0 (#563322)
Package-Manager: portage-2.2.23
Diffstat (limited to 'dev-lang/erlang')
-rw-r--r-- | dev-lang/erlang/erlang-18.0-r2.ebuild | 166 | ||||
-rw-r--r-- | dev-lang/erlang/files/erlang-18.0-wx3.0.patch | 531 |
2 files changed, 697 insertions, 0 deletions
diff --git a/dev-lang/erlang/erlang-18.0-r2.ebuild b/dev-lang/erlang/erlang-18.0-r2.ebuild new file mode 100644 index 00000000000..e62e7a2ba9a --- /dev/null +++ b/dev-lang/erlang/erlang-18.0-r2.ebuild @@ -0,0 +1,166 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +WX_GTK_VER="3.0" + +inherit autotools elisp-common eutils java-pkg-opt-2 multilib systemd versionator wxwidgets + +# NOTE: If you need symlinks for binaries please tell maintainers or +# open up a bug to let it be created. + +DESCRIPTION="Erlang programming language, runtime environment, and large collection of libraries" +HOMEPAGE="http://www.erlang.org/" +SRC_URI="http://www.erlang.org/download/otp_src_${PV}.tar.gz + http://erlang.org/download/otp_doc_man_${PV}.tar.gz + doc? ( http://erlang.org/download/otp_doc_html_${PV}.tar.gz )" + +LICENSE="ErlPL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +IUSE="compat-ethread doc emacs halfword hipe java kpoll libressl odbc smp sctp ssl systemd tk wxwidgets" + +RDEPEND=" + ssl? ( + !libressl? ( >=dev-libs/openssl-0.9.7d:0 ) + libressl? ( dev-libs/libressl ) + ) + emacs? ( virtual/emacs ) + java? ( >=virtual/jdk-1.2 ) + odbc? ( dev-db/unixODBC )" +DEPEND="${RDEPEND} + wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] virtual/glu ) + sctp? ( net-misc/lksctp-tools ) + tk? ( dev-lang/tk )" + +S="${WORKDIR}/otp_src_${PV}" + +SITEFILE=50${PN}-gentoo.el + +pkg_setup() { + if use halfword ; then + use amd64 || die "halfword support is limited to amd64" + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-18.0-wx3.0.patch + + use odbc || sed -i 's: odbc : :' lib/Makefile + + # bug 263129, don't ignore LDFLAGS, reported upstream + sed -e 's:LDFLAGS = \$(DED_LDFLAGS):LDFLAGS += \$(DED_LDFLAGS):' -i "${S}"/lib/megaco/src/flex/Makefile.in + + # don't ignore LDFLAGS, reported upstream + sed -e 's:LDFLAGS = \$(ODBC_LIB) \$(EI_LDFLAGS):LDFLAGS += \$(ODBC_LIB) \$(EI_LDFLAGS):' -i "${S}"/lib/odbc/c_src/Makefile.in + + if ! use wxwidgets; then + sed -i 's: wx : :' lib/Makefile + rm -rf lib/wx + fi + + # Nasty workaround, reported upstream + cp "${S}"/lib/configure.in.src "${S}"/lib/configure.in + + # bug 383697 + sed -i '1i#define OF(x) x' erts/emulator/drivers/common/gzio.c + + cd erts && mv configure.in configure.ac && eautoreconf +} + +src_configure() { + use wxwidgets && need-wxwidgets unicode + use java || export JAVAC=false + + econf \ + --enable-threads \ + $(use_enable sctp) \ + $(use_enable systemd) \ + $(use_enable halfword halfword-emulator) \ + $(use_enable hipe) \ + $(use_with ssl ssl "${EPREFIX}"/usr) \ + $(use_enable ssl dynamic-ssl-lib) \ + $(use_enable kpoll kernel-poll) \ + $(use_enable smp smp-support) \ + $(use compat-ethread && echo "--enable-ethread-pre-pentium4-compatibility") \ + $(use x64-macos && echo "--enable-darwin-64bit") +} + +src_compile() { + use java || export JAVAC=false + emake + + if use emacs ; then + pushd lib/tools/emacs + elisp-compile *.el + popd + fi +} + +extract_version() { + sed -n -e "/^$2 = \(.*\)$/s::\1:p" "${S}/$1/vsn.mk" +} + +src_install() { + local ERL_LIBDIR=/usr/$(get_libdir)/erlang + local ERL_INTERFACE_VER=$(extract_version lib/erl_interface EI_VSN) + local ERL_ERTS_VER=$(extract_version erts VSN) + + emake INSTALL_PREFIX="${D}" install + dodoc AUTHORS README.md + + dosym "${ERL_LIBDIR}/bin/erl" /usr/bin/erl + dosym "${ERL_LIBDIR}/bin/erlc" /usr/bin/erlc + dosym "${ERL_LIBDIR}/bin/escript" /usr/bin/escript + dosym \ + "${ERL_LIBDIR}/lib/erl_interface-${ERL_INTERFACE_VER}/bin/erl_call" \ + /usr/bin/erl_call + dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam" /usr/bin/beam + use smp && dosym "${ERL_LIBDIR}/erts-${ERL_ERTS_VER}/bin/beam.smp" /usr/bin/beam.smp + + ## Remove ${D} from the following files + sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/erl" + sed -e "s:${D}::g" -i "${ED}${ERL_LIBDIR}/bin/start" + grep -rle "${D}" "${ED}/${ERL_LIBDIR}/erts-${ERL_ERTS_VER}" | xargs sed -i -e "s:${D}::g" + + ## Clean up the no longer needed files + rm "${ED}/${ERL_LIBDIR}/Install" + + for i in "${WORKDIR}"/man/man* ; do + dodir "${ERL_LIBDIR}/${i##${WORKDIR}}" + done + for file in "${WORKDIR}"/man/man*/*.[1-9]; do + # doman sucks so we can't use it + cp ${file} "${ED}/${ERL_LIBDIR}"/man/man${file##*.}/ + done + # extend MANPATH, so the normal man command can find it + # see bug 189639 + dodir /etc/env.d/ + echo "MANPATH=\"${EPREFIX}${ERL_LIBDIR}/man\"" > "${ED}/etc/env.d/90erlang" + + if use doc ; then + dohtml -A README,erl,hrl,c,h,kwc,info -r \ + "${WORKDIR}"/doc "${WORKDIR}"/lib "${WORKDIR}"/erts-* + fi + + if use emacs ; then + pushd "${S}" + elisp-install erlang lib/tools/emacs/*.{el,elc} + sed -e "s:/usr/share:${EPREFIX}/usr/share:g" \ + "${FILESDIR}"/${SITEFILE} > "${T}"/${SITEFILE} + elisp-site-file-install "${T}"/${SITEFILE} + popd + fi + + newinitd "${FILESDIR}"/epmd.init epmd + systemd_dounit "${FILESDIR}"/epmd.service +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-lang/erlang/files/erlang-18.0-wx3.0.patch b/dev-lang/erlang/files/erlang-18.0-wx3.0.patch new file mode 100644 index 00000000000..0537134f305 --- /dev/null +++ b/dev-lang/erlang/files/erlang-18.0-wx3.0.patch @@ -0,0 +1,531 @@ +Description: Fix constants for wxwidgets3.0 + The values of wx constants can change between stable release series (and + some have between 2.8 and 3.0), but erlang seems to hardcode these values. +Author: Olly Betts <olly@survex.com> +Bug-Debian: https://bugs.debian.org/766790 +Forwarded: no +Last-Update: 2014-11-25 + +--- a/lib/wx/include/wx.hrl ++++ b/lib/wx/include/wx.hrl +@@ -767,7 +767,7 @@ + % From "checkbox.h" + -define(wxCHK_ALLOW_3RD_STATE_FOR_USER, 8192). + -define(wxCHK_3STATE, 4096). +--define(wxCHK_2STATE, 0). ++-define(wxCHK_2STATE, 16384). + % From "checkbox.h": wxCheckBoxState + -define(wxCHK_UNCHECKED, 0). + -define(wxCHK_CHECKED, 1). +@@ -1014,10 +1014,10 @@ + -define(wxSIZE_AUTO_WIDTH, 1). + -define(wxSETUP, 131072). + -define(wxMORE, 65536). +--define(wxHELP, 32768). +--define(wxRESET, 16384). +--define(wxBACKWARD, 8192). +--define(wxFORWARD, 4096). ++-define(wxHELP, 4096). ++-define(wxRESET, 32768). ++-define(wxBACKWARD, 16384). ++-define(wxFORWARD, 8192). + -define(wxICON_MASK, (16#00000100 bor 16#00000200 bor 16#00000400 bor 16#00000800)). + -define(wxICON_ASTERISK, ?wxICON_INFORMATION). + -define(wxICON_STOP, ?wxICON_HAND). +@@ -1049,8 +1049,8 @@ + -define(wxTC_TOP, 0). + -define(wxTC_FIXEDWIDTH, 32). + -define(wxTC_RIGHTJUSTIFY, 16). +--define(wxSP_WRAP, 8192). +--define(wxSP_ARROW_KEYS, 4096). ++-define(wxSP_WRAP, 32768). ++-define(wxSP_ARROW_KEYS, 16384). + -define(wxSP_VERTICAL, ?wxVERTICAL). + -define(wxSP_HORIZONTAL, ?wxHORIZONTAL). + -define(wxSB_VERTICAL, ?wxVERTICAL). +@@ -1071,8 +1071,8 @@ + -define(wxCB_SIMPLE, 4). + -define(wxLB_INT_HEIGHT, 2048). + -define(wxLB_HSCROLL, ?wxHSCROLL). +--define(wxLB_ALWAYS_SB, 1024). +--define(wxLB_NEEDED_SB, 512). ++-define(wxLB_ALWAYS_SB, 512). ++-define(wxLB_NEEDED_SB, 0). + -define(wxLB_OWNERDRAW, 256). + -define(wxLB_EXTENDED, 128). + -define(wxLB_MULTIPLE, 64). +@@ -1548,7 +1548,7 @@ + -define(wxUPDATE_UI_FROMIDLE, 2). + % From "dialog.h" + -define(wxDEFAULT_DIALOG_STYLE, (?wxCAPTION bor ?wxSYSTEM_MENU bor ?wxCLOSE_BOX)). +--define(wxDIALOG_NO_PARENT, 1). ++-define(wxDIALOG_NO_PARENT, 32). + % From "dirctrlg.h" + -define(wxDIRCTRL_DIR_ONLY, 16). + -define(wxDIRCTRL_SELECT_FIRST, 32). +@@ -2036,212 +2036,212 @@ + -define(wxLANGUAGE_ARABIC_YEMEN, 24). + -define(wxLANGUAGE_ARMENIAN, 25). + -define(wxLANGUAGE_ASSAMESE, 26). +--define(wxLANGUAGE_AYMARA, 27). +--define(wxLANGUAGE_AZERI, 28). +--define(wxLANGUAGE_AZERI_CYRILLIC, 29). +--define(wxLANGUAGE_AZERI_LATIN, 30). +--define(wxLANGUAGE_BASHKIR, 31). +--define(wxLANGUAGE_BASQUE, 32). +--define(wxLANGUAGE_BELARUSIAN, 33). +--define(wxLANGUAGE_BENGALI, 34). +--define(wxLANGUAGE_BHUTANI, 35). +--define(wxLANGUAGE_BIHARI, 36). +--define(wxLANGUAGE_BISLAMA, 37). +--define(wxLANGUAGE_BRETON, 38). +--define(wxLANGUAGE_BULGARIAN, 39). +--define(wxLANGUAGE_BURMESE, 40). +--define(wxLANGUAGE_CAMBODIAN, 41). +--define(wxLANGUAGE_CATALAN, 42). +--define(wxLANGUAGE_CHINESE, 43). +--define(wxLANGUAGE_CHINESE_SIMPLIFIED, 44). +--define(wxLANGUAGE_CHINESE_TRADITIONAL, 45). +--define(wxLANGUAGE_CHINESE_HONGKONG, 46). +--define(wxLANGUAGE_CHINESE_MACAU, 47). +--define(wxLANGUAGE_CHINESE_SINGAPORE, 48). +--define(wxLANGUAGE_CHINESE_TAIWAN, 49). +--define(wxLANGUAGE_CORSICAN, 50). +--define(wxLANGUAGE_CROATIAN, 51). +--define(wxLANGUAGE_CZECH, 52). +--define(wxLANGUAGE_DANISH, 53). +--define(wxLANGUAGE_DUTCH, 54). +--define(wxLANGUAGE_DUTCH_BELGIAN, 55). +--define(wxLANGUAGE_ENGLISH, 56). +--define(wxLANGUAGE_ENGLISH_UK, 57). +--define(wxLANGUAGE_ENGLISH_US, 58). +--define(wxLANGUAGE_ENGLISH_AUSTRALIA, 59). +--define(wxLANGUAGE_ENGLISH_BELIZE, 60). +--define(wxLANGUAGE_ENGLISH_BOTSWANA, 61). +--define(wxLANGUAGE_ENGLISH_CANADA, 62). +--define(wxLANGUAGE_ENGLISH_CARIBBEAN, 63). +--define(wxLANGUAGE_ENGLISH_DENMARK, 64). +--define(wxLANGUAGE_ENGLISH_EIRE, 65). +--define(wxLANGUAGE_ENGLISH_JAMAICA, 66). +--define(wxLANGUAGE_ENGLISH_NEW_ZEALAND, 67). +--define(wxLANGUAGE_ENGLISH_PHILIPPINES, 68). +--define(wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 69). +--define(wxLANGUAGE_ENGLISH_TRINIDAD, 70). +--define(wxLANGUAGE_ENGLISH_ZIMBABWE, 71). +--define(wxLANGUAGE_ESPERANTO, 72). +--define(wxLANGUAGE_ESTONIAN, 73). +--define(wxLANGUAGE_FAEROESE, 74). +--define(wxLANGUAGE_FARSI, 75). +--define(wxLANGUAGE_FIJI, 76). +--define(wxLANGUAGE_FINNISH, 77). +--define(wxLANGUAGE_FRENCH, 78). +--define(wxLANGUAGE_FRENCH_BELGIAN, 79). +--define(wxLANGUAGE_FRENCH_CANADIAN, 80). +--define(wxLANGUAGE_FRENCH_LUXEMBOURG, 81). +--define(wxLANGUAGE_FRENCH_MONACO, 82). +--define(wxLANGUAGE_FRENCH_SWISS, 83). +--define(wxLANGUAGE_FRISIAN, 84). +--define(wxLANGUAGE_GALICIAN, 85). +--define(wxLANGUAGE_GEORGIAN, 86). +--define(wxLANGUAGE_GERMAN, 87). +--define(wxLANGUAGE_GERMAN_AUSTRIAN, 88). +--define(wxLANGUAGE_GERMAN_BELGIUM, 89). +--define(wxLANGUAGE_GERMAN_LIECHTENSTEIN, 90). +--define(wxLANGUAGE_GERMAN_LUXEMBOURG, 91). +--define(wxLANGUAGE_GERMAN_SWISS, 92). +--define(wxLANGUAGE_GREEK, 93). +--define(wxLANGUAGE_GREENLANDIC, 94). +--define(wxLANGUAGE_GUARANI, 95). +--define(wxLANGUAGE_GUJARATI, 96). +--define(wxLANGUAGE_HAUSA, 97). +--define(wxLANGUAGE_HEBREW, 98). +--define(wxLANGUAGE_HINDI, 99). +--define(wxLANGUAGE_HUNGARIAN, 100). +--define(wxLANGUAGE_ICELANDIC, 101). +--define(wxLANGUAGE_INDONESIAN, 102). +--define(wxLANGUAGE_INTERLINGUA, 103). +--define(wxLANGUAGE_INTERLINGUE, 104). +--define(wxLANGUAGE_INUKTITUT, 105). +--define(wxLANGUAGE_INUPIAK, 106). +--define(wxLANGUAGE_IRISH, 107). +--define(wxLANGUAGE_ITALIAN, 108). +--define(wxLANGUAGE_ITALIAN_SWISS, 109). +--define(wxLANGUAGE_JAPANESE, 110). +--define(wxLANGUAGE_JAVANESE, 111). +--define(wxLANGUAGE_KANNADA, 112). +--define(wxLANGUAGE_KASHMIRI, 113). +--define(wxLANGUAGE_KASHMIRI_INDIA, 114). +--define(wxLANGUAGE_KAZAKH, 115). +--define(wxLANGUAGE_KERNEWEK, 116). +--define(wxLANGUAGE_KINYARWANDA, 117). +--define(wxLANGUAGE_KIRGHIZ, 118). +--define(wxLANGUAGE_KIRUNDI, 119). +--define(wxLANGUAGE_KONKANI, 120). +--define(wxLANGUAGE_KOREAN, 121). +--define(wxLANGUAGE_KURDISH, 122). +--define(wxLANGUAGE_LAOTHIAN, 123). +--define(wxLANGUAGE_LATIN, 124). +--define(wxLANGUAGE_LATVIAN, 125). +--define(wxLANGUAGE_LINGALA, 126). +--define(wxLANGUAGE_LITHUANIAN, 127). +--define(wxLANGUAGE_MACEDONIAN, 128). +--define(wxLANGUAGE_MALAGASY, 129). +--define(wxLANGUAGE_MALAY, 130). +--define(wxLANGUAGE_MALAYALAM, 131). +--define(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 132). +--define(wxLANGUAGE_MALAY_MALAYSIA, 133). +--define(wxLANGUAGE_MALTESE, 134). +--define(wxLANGUAGE_MANIPURI, 135). +--define(wxLANGUAGE_MAORI, 136). +--define(wxLANGUAGE_MARATHI, 137). +--define(wxLANGUAGE_MOLDAVIAN, 138). +--define(wxLANGUAGE_MONGOLIAN, 139). +--define(wxLANGUAGE_NAURU, 140). +--define(wxLANGUAGE_NEPALI, 141). +--define(wxLANGUAGE_NEPALI_INDIA, 142). +--define(wxLANGUAGE_NORWEGIAN_BOKMAL, 143). +--define(wxLANGUAGE_NORWEGIAN_NYNORSK, 144). +--define(wxLANGUAGE_OCCITAN, 145). +--define(wxLANGUAGE_ORIYA, 146). +--define(wxLANGUAGE_OROMO, 147). +--define(wxLANGUAGE_PASHTO, 148). +--define(wxLANGUAGE_POLISH, 149). +--define(wxLANGUAGE_PORTUGUESE, 150). +--define(wxLANGUAGE_PORTUGUESE_BRAZILIAN, 151). +--define(wxLANGUAGE_PUNJABI, 152). +--define(wxLANGUAGE_QUECHUA, 153). +--define(wxLANGUAGE_RHAETO_ROMANCE, 154). +--define(wxLANGUAGE_ROMANIAN, 155). +--define(wxLANGUAGE_RUSSIAN, 156). +--define(wxLANGUAGE_RUSSIAN_UKRAINE, 157). +--define(wxLANGUAGE_SAMOAN, 158). +--define(wxLANGUAGE_SANGHO, 159). +--define(wxLANGUAGE_SANSKRIT, 160). +--define(wxLANGUAGE_SCOTS_GAELIC, 161). +--define(wxLANGUAGE_SERBIAN, 162). +--define(wxLANGUAGE_SERBIAN_CYRILLIC, 163). +--define(wxLANGUAGE_SERBIAN_LATIN, 164). +--define(wxLANGUAGE_SERBO_CROATIAN, 165). +--define(wxLANGUAGE_SESOTHO, 166). +--define(wxLANGUAGE_SETSWANA, 167). +--define(wxLANGUAGE_SHONA, 168). +--define(wxLANGUAGE_SINDHI, 169). +--define(wxLANGUAGE_SINHALESE, 170). +--define(wxLANGUAGE_SISWATI, 171). +--define(wxLANGUAGE_SLOVAK, 172). +--define(wxLANGUAGE_SLOVENIAN, 173). +--define(wxLANGUAGE_SOMALI, 174). +--define(wxLANGUAGE_SPANISH, 175). +--define(wxLANGUAGE_SPANISH_ARGENTINA, 176). +--define(wxLANGUAGE_SPANISH_BOLIVIA, 177). +--define(wxLANGUAGE_SPANISH_CHILE, 178). +--define(wxLANGUAGE_SPANISH_COLOMBIA, 179). +--define(wxLANGUAGE_SPANISH_COSTA_RICA, 180). +--define(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 181). +--define(wxLANGUAGE_SPANISH_ECUADOR, 182). +--define(wxLANGUAGE_SPANISH_EL_SALVADOR, 183). +--define(wxLANGUAGE_SPANISH_GUATEMALA, 184). +--define(wxLANGUAGE_SPANISH_HONDURAS, 185). +--define(wxLANGUAGE_SPANISH_MEXICAN, 186). +--define(wxLANGUAGE_SPANISH_MODERN, 187). +--define(wxLANGUAGE_SPANISH_NICARAGUA, 188). +--define(wxLANGUAGE_SPANISH_PANAMA, 189). +--define(wxLANGUAGE_SPANISH_PARAGUAY, 190). +--define(wxLANGUAGE_SPANISH_PERU, 191). +--define(wxLANGUAGE_SPANISH_PUERTO_RICO, 192). +--define(wxLANGUAGE_SPANISH_URUGUAY, 193). +--define(wxLANGUAGE_SPANISH_US, 194). +--define(wxLANGUAGE_SPANISH_VENEZUELA, 195). +--define(wxLANGUAGE_SUNDANESE, 196). +--define(wxLANGUAGE_SWAHILI, 197). +--define(wxLANGUAGE_SWEDISH, 198). +--define(wxLANGUAGE_SWEDISH_FINLAND, 199). +--define(wxLANGUAGE_TAGALOG, 200). +--define(wxLANGUAGE_TAJIK, 201). +--define(wxLANGUAGE_TAMIL, 202). +--define(wxLANGUAGE_TATAR, 203). +--define(wxLANGUAGE_TELUGU, 204). +--define(wxLANGUAGE_THAI, 205). +--define(wxLANGUAGE_TIBETAN, 206). +--define(wxLANGUAGE_TIGRINYA, 207). +--define(wxLANGUAGE_TONGA, 208). +--define(wxLANGUAGE_TSONGA, 209). +--define(wxLANGUAGE_TURKISH, 210). +--define(wxLANGUAGE_TURKMEN, 211). +--define(wxLANGUAGE_TWI, 212). +--define(wxLANGUAGE_UIGHUR, 213). +--define(wxLANGUAGE_UKRAINIAN, 214). +--define(wxLANGUAGE_URDU, 215). +--define(wxLANGUAGE_URDU_INDIA, 216). +--define(wxLANGUAGE_URDU_PAKISTAN, 217). +--define(wxLANGUAGE_UZBEK, 218). +--define(wxLANGUAGE_UZBEK_CYRILLIC, 219). +--define(wxLANGUAGE_UZBEK_LATIN, 220). +--define(wxLANGUAGE_VIETNAMESE, 221). +--define(wxLANGUAGE_VOLAPUK, 222). +--define(wxLANGUAGE_WELSH, 223). +--define(wxLANGUAGE_WOLOF, 224). +--define(wxLANGUAGE_XHOSA, 225). +--define(wxLANGUAGE_YIDDISH, 226). +--define(wxLANGUAGE_YORUBA, 227). +--define(wxLANGUAGE_ZHUANG, 228). +--define(wxLANGUAGE_ZULU, 229). ++-define(wxLANGUAGE_AYMARA, 28). ++-define(wxLANGUAGE_AZERI, 29). ++-define(wxLANGUAGE_AZERI_CYRILLIC, 30). ++-define(wxLANGUAGE_AZERI_LATIN, 31). ++-define(wxLANGUAGE_BASHKIR, 32). ++-define(wxLANGUAGE_BASQUE, 33). ++-define(wxLANGUAGE_BELARUSIAN, 34). ++-define(wxLANGUAGE_BENGALI, 35). ++-define(wxLANGUAGE_BHUTANI, 36). ++-define(wxLANGUAGE_BIHARI, 37). ++-define(wxLANGUAGE_BISLAMA, 38). ++-define(wxLANGUAGE_BRETON, 40). ++-define(wxLANGUAGE_BULGARIAN, 41). ++-define(wxLANGUAGE_BURMESE, 42). ++-define(wxLANGUAGE_CAMBODIAN, 43). ++-define(wxLANGUAGE_CATALAN, 44). ++-define(wxLANGUAGE_CHINESE, 45). ++-define(wxLANGUAGE_CHINESE_SIMPLIFIED, 46). ++-define(wxLANGUAGE_CHINESE_TRADITIONAL, 47). ++-define(wxLANGUAGE_CHINESE_HONGKONG, 48). ++-define(wxLANGUAGE_CHINESE_MACAU, 49). ++-define(wxLANGUAGE_CHINESE_SINGAPORE, 50). ++-define(wxLANGUAGE_CHINESE_TAIWAN, 51). ++-define(wxLANGUAGE_CORSICAN, 52). ++-define(wxLANGUAGE_CROATIAN, 53). ++-define(wxLANGUAGE_CZECH, 54). ++-define(wxLANGUAGE_DANISH, 55). ++-define(wxLANGUAGE_DUTCH, 56). ++-define(wxLANGUAGE_DUTCH_BELGIAN, 57). ++-define(wxLANGUAGE_ENGLISH, 58). ++-define(wxLANGUAGE_ENGLISH_UK, 59). ++-define(wxLANGUAGE_ENGLISH_US, 60). ++-define(wxLANGUAGE_ENGLISH_AUSTRALIA, 61). ++-define(wxLANGUAGE_ENGLISH_BELIZE, 62). ++-define(wxLANGUAGE_ENGLISH_BOTSWANA, 63). ++-define(wxLANGUAGE_ENGLISH_CANADA, 64). ++-define(wxLANGUAGE_ENGLISH_CARIBBEAN, 65). ++-define(wxLANGUAGE_ENGLISH_DENMARK, 66). ++-define(wxLANGUAGE_ENGLISH_EIRE, 67). ++-define(wxLANGUAGE_ENGLISH_JAMAICA, 68). ++-define(wxLANGUAGE_ENGLISH_NEW_ZEALAND, 69). ++-define(wxLANGUAGE_ENGLISH_PHILIPPINES, 70). ++-define(wxLANGUAGE_ENGLISH_SOUTH_AFRICA, 71). ++-define(wxLANGUAGE_ENGLISH_TRINIDAD, 72). ++-define(wxLANGUAGE_ENGLISH_ZIMBABWE, 73). ++-define(wxLANGUAGE_ESPERANTO, 74). ++-define(wxLANGUAGE_ESTONIAN, 75). ++-define(wxLANGUAGE_FAEROESE, 76). ++-define(wxLANGUAGE_FARSI, 77). ++-define(wxLANGUAGE_FIJI, 78). ++-define(wxLANGUAGE_FINNISH, 79). ++-define(wxLANGUAGE_FRENCH, 80). ++-define(wxLANGUAGE_FRENCH_BELGIAN, 81). ++-define(wxLANGUAGE_FRENCH_CANADIAN, 82). ++-define(wxLANGUAGE_FRENCH_LUXEMBOURG, 83). ++-define(wxLANGUAGE_FRENCH_MONACO, 84). ++-define(wxLANGUAGE_FRENCH_SWISS, 85). ++-define(wxLANGUAGE_FRISIAN, 86). ++-define(wxLANGUAGE_GALICIAN, 87). ++-define(wxLANGUAGE_GEORGIAN, 88). ++-define(wxLANGUAGE_GERMAN, 89). ++-define(wxLANGUAGE_GERMAN_AUSTRIAN, 90). ++-define(wxLANGUAGE_GERMAN_BELGIUM, 91). ++-define(wxLANGUAGE_GERMAN_LIECHTENSTEIN, 92). ++-define(wxLANGUAGE_GERMAN_LUXEMBOURG, 93). ++-define(wxLANGUAGE_GERMAN_SWISS, 94). ++-define(wxLANGUAGE_GREEK, 95). ++-define(wxLANGUAGE_GREENLANDIC, 96). ++-define(wxLANGUAGE_GUARANI, 97). ++-define(wxLANGUAGE_GUJARATI, 98). ++-define(wxLANGUAGE_HAUSA, 99). ++-define(wxLANGUAGE_HEBREW, 100). ++-define(wxLANGUAGE_HINDI, 101). ++-define(wxLANGUAGE_HUNGARIAN, 102). ++-define(wxLANGUAGE_ICELANDIC, 103). ++-define(wxLANGUAGE_INDONESIAN, 104). ++-define(wxLANGUAGE_INTERLINGUA, 105). ++-define(wxLANGUAGE_INTERLINGUE, 106). ++-define(wxLANGUAGE_INUKTITUT, 107). ++-define(wxLANGUAGE_INUPIAK, 108). ++-define(wxLANGUAGE_IRISH, 109). ++-define(wxLANGUAGE_ITALIAN, 110). ++-define(wxLANGUAGE_ITALIAN_SWISS, 111). ++-define(wxLANGUAGE_JAPANESE, 112). ++-define(wxLANGUAGE_JAVANESE, 113). ++-define(wxLANGUAGE_KANNADA, 114). ++-define(wxLANGUAGE_KASHMIRI, 115). ++-define(wxLANGUAGE_KASHMIRI_INDIA, 116). ++-define(wxLANGUAGE_KAZAKH, 117). ++-define(wxLANGUAGE_KERNEWEK, 118). ++-define(wxLANGUAGE_KINYARWANDA, 119). ++-define(wxLANGUAGE_KIRGHIZ, 120). ++-define(wxLANGUAGE_KIRUNDI, 121). ++-define(wxLANGUAGE_KONKANI, 122). ++-define(wxLANGUAGE_KOREAN, 123). ++-define(wxLANGUAGE_KURDISH, 124). ++-define(wxLANGUAGE_LAOTHIAN, 125). ++-define(wxLANGUAGE_LATIN, 126). ++-define(wxLANGUAGE_LATVIAN, 127). ++-define(wxLANGUAGE_LINGALA, 128). ++-define(wxLANGUAGE_LITHUANIAN, 129). ++-define(wxLANGUAGE_MACEDONIAN, 130). ++-define(wxLANGUAGE_MALAGASY, 131). ++-define(wxLANGUAGE_MALAY, 132). ++-define(wxLANGUAGE_MALAYALAM, 133). ++-define(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM, 134). ++-define(wxLANGUAGE_MALAY_MALAYSIA, 135). ++-define(wxLANGUAGE_MALTESE, 136). ++-define(wxLANGUAGE_MANIPURI, 137). ++-define(wxLANGUAGE_MAORI, 138). ++-define(wxLANGUAGE_MARATHI, 139). ++-define(wxLANGUAGE_MOLDAVIAN, 140). ++-define(wxLANGUAGE_MONGOLIAN, 141). ++-define(wxLANGUAGE_NAURU, 142). ++-define(wxLANGUAGE_NEPALI, 143). ++-define(wxLANGUAGE_NEPALI_INDIA, 144). ++-define(wxLANGUAGE_NORWEGIAN_BOKMAL, 145). ++-define(wxLANGUAGE_NORWEGIAN_NYNORSK, 146). ++-define(wxLANGUAGE_OCCITAN, 147). ++-define(wxLANGUAGE_ORIYA, 148). ++-define(wxLANGUAGE_OROMO, 149). ++-define(wxLANGUAGE_PASHTO, 150). ++-define(wxLANGUAGE_POLISH, 151). ++-define(wxLANGUAGE_PORTUGUESE, 152). ++-define(wxLANGUAGE_PORTUGUESE_BRAZILIAN, 153). ++-define(wxLANGUAGE_PUNJABI, 154). ++-define(wxLANGUAGE_QUECHUA, 155). ++-define(wxLANGUAGE_RHAETO_ROMANCE, 156). ++-define(wxLANGUAGE_ROMANIAN, 157). ++-define(wxLANGUAGE_RUSSIAN, 158). ++-define(wxLANGUAGE_RUSSIAN_UKRAINE, 159). ++-define(wxLANGUAGE_SAMOAN, 161). ++-define(wxLANGUAGE_SANGHO, 162). ++-define(wxLANGUAGE_SANSKRIT, 163). ++-define(wxLANGUAGE_SCOTS_GAELIC, 164). ++-define(wxLANGUAGE_SERBIAN, 165). ++-define(wxLANGUAGE_SERBIAN_CYRILLIC, 166). ++-define(wxLANGUAGE_SERBIAN_LATIN, 167). ++-define(wxLANGUAGE_SERBO_CROATIAN, 168). ++-define(wxLANGUAGE_SESOTHO, 169). ++-define(wxLANGUAGE_SETSWANA, 170). ++-define(wxLANGUAGE_SHONA, 171). ++-define(wxLANGUAGE_SINDHI, 172). ++-define(wxLANGUAGE_SINHALESE, 173). ++-define(wxLANGUAGE_SISWATI, 174). ++-define(wxLANGUAGE_SLOVAK, 175). ++-define(wxLANGUAGE_SLOVENIAN, 176). ++-define(wxLANGUAGE_SOMALI, 177). ++-define(wxLANGUAGE_SPANISH, 178). ++-define(wxLANGUAGE_SPANISH_ARGENTINA, 179). ++-define(wxLANGUAGE_SPANISH_BOLIVIA, 180). ++-define(wxLANGUAGE_SPANISH_CHILE, 181). ++-define(wxLANGUAGE_SPANISH_COLOMBIA, 182). ++-define(wxLANGUAGE_SPANISH_COSTA_RICA, 183). ++-define(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC, 184). ++-define(wxLANGUAGE_SPANISH_ECUADOR, 185). ++-define(wxLANGUAGE_SPANISH_EL_SALVADOR, 186). ++-define(wxLANGUAGE_SPANISH_GUATEMALA, 187). ++-define(wxLANGUAGE_SPANISH_HONDURAS, 188). ++-define(wxLANGUAGE_SPANISH_MEXICAN, 189). ++-define(wxLANGUAGE_SPANISH_MODERN, 190). ++-define(wxLANGUAGE_SPANISH_NICARAGUA, 191). ++-define(wxLANGUAGE_SPANISH_PANAMA, 192). ++-define(wxLANGUAGE_SPANISH_PARAGUAY, 193). ++-define(wxLANGUAGE_SPANISH_PERU, 194). ++-define(wxLANGUAGE_SPANISH_PUERTO_RICO, 195). ++-define(wxLANGUAGE_SPANISH_URUGUAY, 196). ++-define(wxLANGUAGE_SPANISH_US, 197). ++-define(wxLANGUAGE_SPANISH_VENEZUELA, 198). ++-define(wxLANGUAGE_SUNDANESE, 199). ++-define(wxLANGUAGE_SWAHILI, 200). ++-define(wxLANGUAGE_SWEDISH, 201). ++-define(wxLANGUAGE_SWEDISH_FINLAND, 202). ++-define(wxLANGUAGE_TAGALOG, 203). ++-define(wxLANGUAGE_TAJIK, 204). ++-define(wxLANGUAGE_TAMIL, 205). ++-define(wxLANGUAGE_TATAR, 206). ++-define(wxLANGUAGE_TELUGU, 207). ++-define(wxLANGUAGE_THAI, 208). ++-define(wxLANGUAGE_TIBETAN, 209). ++-define(wxLANGUAGE_TIGRINYA, 210). ++-define(wxLANGUAGE_TONGA, 211). ++-define(wxLANGUAGE_TSONGA, 212). ++-define(wxLANGUAGE_TURKISH, 213). ++-define(wxLANGUAGE_TURKMEN, 214). ++-define(wxLANGUAGE_TWI, 215). ++-define(wxLANGUAGE_UIGHUR, 216). ++-define(wxLANGUAGE_UKRAINIAN, 217). ++-define(wxLANGUAGE_URDU, 218). ++-define(wxLANGUAGE_URDU_INDIA, 219). ++-define(wxLANGUAGE_URDU_PAKISTAN, 220). ++-define(wxLANGUAGE_UZBEK, 221). ++-define(wxLANGUAGE_UZBEK_CYRILLIC, 222). ++-define(wxLANGUAGE_UZBEK_LATIN, 223). ++-define(wxLANGUAGE_VIETNAMESE, 225). ++-define(wxLANGUAGE_VOLAPUK, 226). ++-define(wxLANGUAGE_WELSH, 227). ++-define(wxLANGUAGE_WOLOF, 228). ++-define(wxLANGUAGE_XHOSA, 229). ++-define(wxLANGUAGE_YIDDISH, 230). ++-define(wxLANGUAGE_YORUBA, 231). ++-define(wxLANGUAGE_ZHUANG, 232). ++-define(wxLANGUAGE_ZULU, 233). + -define(wxLANGUAGE_USER_DEFINED, 230). +--define(wxLANGUAGE_VALENCIAN, 536870911). +--define(wxLANGUAGE_SAMI, 536870912). ++-define(wxLANGUAGE_VALENCIAN, 224). ++-define(wxLANGUAGE_SAMI, 160). + % From "intl.h": wxLayoutDirection + -define(wxLayout_Default, 0). + -define(wxLayout_LeftToRight, 1). +@@ -3728,7 +3728,7 @@ + -define(wxSTC_KEY_LEFT, 302). + -define(wxSTC_KEY_UP, 301). + -define(wxSTC_KEY_DOWN, 300). +--define(wxSTC_MODEVENTMASKALL, 8191). ++-define(wxSTC_MODEVENTMASKALL, 1048575). + -define(wxSTC_MULTILINEUNDOREDO, 4096). + -define(wxSTC_MOD_BEFOREDELETE, 2048). + -define(wxSTC_MOD_BEFOREINSERT, 1024). +@@ -3810,7 +3810,7 @@ + -define(wxSTC_INDIC_TT, 2). + -define(wxSTC_INDIC_SQUIGGLE, 1). + -define(wxSTC_INDIC_PLAIN, 0). +--define(wxSTC_INDIC_MAX, 7). ++-define(wxSTC_INDIC_MAX, 31). + -define(wxSTC_CASE_LOWER, 2). + -define(wxSTC_CASE_UPPER, 1). + -define(wxSTC_CASE_MIXED, 0). +@@ -3835,7 +3835,7 @@ + -define(wxSTC_CHARSET_BALTIC, 186). + -define(wxSTC_CHARSET_DEFAULT, 1). + -define(wxSTC_CHARSET_ANSI, 0). +--define(wxSTC_STYLE_MAX, 127). ++-define(wxSTC_STYLE_MAX, 255). + -define(wxSTC_STYLE_LASTPREDEFINED, 39). + -define(wxSTC_STYLE_CALLTIP, 38). + -define(wxSTC_STYLE_INDENTGUIDE, 37). +@@ -3934,9 +3934,9 @@ + -define(wxTE_PROCESS_TAB, 64). + -define(wxTE_MULTILINE, 32). + -define(wxTE_READONLY, 16). +--define(wxTE_AUTO_SCROLL, 8). ++-define(wxTE_AUTO_SCROLL, 0). + -define(wxTE_NO_VSCROLL, 2). +--define(wxHAS_TEXT_WINDOW_STREAM, 0). ++-define(wxHAS_TEXT_WINDOW_STREAM, 1). + % From "textctrl.h": wxTextAttrAlignment + -define(wxTEXT_ALIGNMENT_DEFAULT, 0). + -define(wxTEXT_ALIGNMENT_LEFT, 1). +@@ -3986,7 +3986,7 @@ + -define(wxDEFAULT_FRAME_STYLE, (?wxSYSTEM_MENU bor ?wxRESIZE_BORDER bor ?wxMINIMIZE_BOX bor ?wxMAXIMIZE_BOX bor ?wxCLOSE_BOX bor ?wxCAPTION bor ?wxCLIP_CHILDREN)). + -define(wxRESIZE_BORDER, 64). + -define(wxTINY_CAPTION_VERT, 128). +--define(wxTINY_CAPTION_HORIZ, 256). ++-define(wxTINY_CAPTION_HORIZ, 128). + -define(wxMAXIMIZE_BOX, 512). + -define(wxMINIMIZE_BOX, 1024). + -define(wxSYSTEM_MENU, 2048). |