diff options
Diffstat (limited to 'dev-scheme/gauche-gtk')
-rw-r--r-- | dev-scheme/gauche-gtk/Manifest | 9 | ||||
-rw-r--r-- | dev-scheme/gauche-gtk/files/gauche-gtk-gtk-lib.hints.diff | 71 | ||||
-rw-r--r-- | dev-scheme/gauche-gtk/files/gauche-gtk-h2s-cpp.diff | 11 | ||||
-rw-r--r-- | dev-scheme/gauche-gtk/files/gauche-gtk-h2s-gdk-pixbuf.diff | 23 | ||||
-rw-r--r-- | dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild | 32 | ||||
-rw-r--r-- | dev-scheme/gauche-gtk/metadata.xml | 1 |
6 files changed, 19 insertions, 128 deletions
diff --git a/dev-scheme/gauche-gtk/Manifest b/dev-scheme/gauche-gtk/Manifest index c8db376c75ee..8a57b6728499 100644 --- a/dev-scheme/gauche-gtk/Manifest +++ b/dev-scheme/gauche-gtk/Manifest @@ -1,6 +1,3 @@ -AUX gauche-gtk-gtk-lib.hints.diff 3208 BLAKE2B fe6d59d93304cbc0fa883791582ff18e0101b39a95849cca402ad7f7753e074d9ec2c917431aa6dfe09e07bfdcdbaacb4deaed64bb89a64f15bca6d056ed8cd1 SHA512 4315e517d52f39cd8d19e6abadc244c4c23c059e7adc137e247b5b1926d09d6d924b8fc1bc376add58a42ec365da0024a19d1a4d9ac709bf8b1dca86663da747 -AUX gauche-gtk-h2s-cpp.diff 472 BLAKE2B 8690be6daad3a989dcbd1cb88ae1c129d0d084a70f74f7c2e557479650513a3f3c3b3c0d624fc7a26b65adb8f516becd8cf2444cc6e51e62d8f97f5a8e1e9b0e SHA512 9615dc4586873424379da75874d50c14459afbfbe37c186a8ad592fad7153ca2e2bc48f8320ffc91e8c86f9c7a34ae0ed96544cab43d6ca80a29a176501e8862 -AUX gauche-gtk-h2s-gdk-pixbuf.diff 778 BLAKE2B 9bf1af16b498ed60d59513e7b7419120c148eda41042b6b691005189222421aa874e517c3d35badf6af5b6f2a14f7120e4722e9a63d3db60f8b86437c66c4f4b SHA512 a2ab9c550fcde6ae46b086210062dfb8504aafff398258da01dea9f0c8488e58ce1644a74f8b5414e4aa05e475be0ef5a69131482caf04626511d4c9e4a0df98 -DIST Gauche-gtk-0.6_pre1.tar.gz 203261 BLAKE2B c0b29dcafcff600faf4ad3236eb15ec86867cc6ea0ea218f1f4a57b2757cbcb16686815633de2787afff9ab36e4079f13f242c1a357f6e8e832faaddc66b3fe8 SHA512 150d9169f893ab4ca80956aab93523cf8d9a5e831f7ba4f577314fa6fac72910238cbb5f375fa6b265b3b6a013bba2674c37c8219c391dd212d52267e2360bb3 -EBUILD gauche-gtk-0.6_pre1.ebuild 1537 BLAKE2B 498dd33d1ed836dd4894794e4b844760ab50cefde7e8e47a2293ec859e027445d50cc4977c10577b48669b4da8a266d7482732eb4dc15a921f8fb6a340b767df SHA512 b1796a2ca03301c9245a6c82d87c0413db43831d1e48ca6e304e384bf307821030f7a1129536fb6aba74e6254a3f1708ff55cef458d6ea69953c278c12b16925 -MISC metadata.xml 440 BLAKE2B 73be748ce7ab16813cd7ab68b46db4e17f24430da98b044107a01deaf523e10a93d071824ace8c2004cb152596bf5b95f3dde617f0548f0271b1db2c85e33297 SHA512 7f82bf6234ca08b343fa1ce530be8567a8ef4e8d30bd2f9b114b9ea2a551e985c2b7f3a8f9496f0c323d25331e69ec83bfd764aaec678a248f991cc71cc3bbb9 +DIST Gauche-gtk-0.6_pre1.tar.gz 205235 BLAKE2B 90f2c69c7521817fd81bee007618fe35c6a20678812139f2f99964cccb953e6ceaa301886a703702ac67184526d5cb3d24db786ef0869f54490acbcb6e3745f3 SHA512 5d47af94f3683c25787bb31b2b077ab5526f84e67db49b95a04d59ee57d1249a9b6666a9223305fe47597a2fa77a6e8d81507a05b1a83a4a76ac5f867738f228 +EBUILD gauche-gtk-0.6_pre1.ebuild 1390 BLAKE2B 0de1649be822ec57f2eb0096f3a0a02c55c43234f5f5afb0b98ce63709a3070f3385b6bd84cd845a667a8fa4647b11df28cc44dce7ba8c36bb4af8c0a3f3afd7 SHA512 e41c093a915947b78468c57dc02d8c2fb7c30fff7e036bcceea39fe80c3a31097df8181cc9858bc7e69877b7dc169dca7d51d5bf5315d7b0ac85eca48f1728d9 +MISC metadata.xml 471 BLAKE2B 5c17e51d4c199f82572546d44c846f55d6bc0dce86ac8780dd96a188fd447f0d5047f09ad3186eac3cf1adefe3a7332a5072f65144e6a6f244ab8871e11259b8 SHA512 64fa480b1c697341c1c215f5aae1c7875c796e11ed05e08045635996c996183b8d1decbc1a31846ee5374d81f33ce282fb44bcc84489f9fa854a063d7cbb527d diff --git a/dev-scheme/gauche-gtk/files/gauche-gtk-gtk-lib.hints.diff b/dev-scheme/gauche-gtk/files/gauche-gtk-gtk-lib.hints.diff deleted file mode 100644 index be54ee550ba7..000000000000 --- a/dev-scheme/gauche-gtk/files/gauche-gtk-gtk-lib.hints.diff +++ /dev/null @@ -1,71 +0,0 @@ ---- a/src/gtk-lib.hints -+++ b/src/gtk-lib.hints -@@ -527,8 +527,10 @@ SCM_RETURN(Scm_Values2(Scm_MakeInteger(n_properties), h));" - (add-mixin! "Scm_GtkEditableClass" "Scm_GtkCellEditableClass")) - - ;; we can't free the return value of gtk_entry_get_text. --(define-cproc gtk-entry-get-text (entry::<gtk-entry>) -- "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_entry_get_text(entry)));") -+(define-cproc-fix gtk-entry-get-text -+ (fix-arguments! '(entry::<gtk-entry>)) -+ (fix-body! -+ "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_entry_get_text(entry)));")) - - ;;================================================================== - ;; gtkfilesel.h -@@ -539,8 +541,10 @@ SCM_RETURN(Scm_Values2(Scm_MakeInteger(n_properties), h));" - ;; gtk_file_selection_get_filename returns mbstr encoded by the current - ;; locale. We canonicalize it to utf8. The Scheme glue code converts - ;; it to Gauche's internal encoding. --(define-cproc gtk-file-selection-get-filename (sel::<gtk-file-selection>) -- "const gchar *fn_mb = gtk_file_selection_get_filename(sel); -+(define-cproc-fix gtk-file-selection-get-filename -+ (fix-arguments! '(sel::<gtk-file-selection>)) -+ (fix-body! -+ "const gchar *fn_mb = gtk_file_selection_get_filename(sel); - gchar *fn_utf8 = g_filename_to_utf8(fn_mb, -1, NULL, NULL, NULL); - if (fn_utf8 == NULL) { - Scm_Error(\"got a filename including multibyte chars which can't be converted to UTF8: %s\", fn_mb); -@@ -549,7 +553,7 @@ SCM_RETURN(Scm_Values2(Scm_MakeInteger(n_properties), h));" - SCM_RETURN(SCM_MAKE_STR_COPYING(fn_utf8)); - #else - SCM_RETURN(Scm_MakeString(fn_utf8, -1, -1, SCM_MAKSTR_COPYING|SCM_MAKSTR_INCOMPLETE)); --#endif") -+#endif")) - - (define-cproc gtk-file-selection-get-selections (sel::<gtk-file-selection>) - "gchar **fns_mb = gtk_file_selection_get_selections(sel); -@@ -609,10 +613,14 @@ SCM_RETURN(Scm_Values2(Scm_MakeInteger(n_properties), h));" - (input-file "gtklabel.h") - - ;; Memory is owned by the widget so we don't need to free them. --(define-cproc gtk-label-get-text (label::<gtk-label>) -- "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_label_get_text(label)));") --(define-cproc gtk-label-get-label (label::<gtk-label>) -- "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_label_get_label(label)));") -+(define-cproc-fix gtk-label-get-text -+ (fix-arguments! '(label::<gtk-label>)) -+ (fix-body! -+ "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_label_get_text(label)));")) -+(define-cproc-fix gtk-label-get-label -+ (fix-arguments! '(label::<gtk-label>)) -+ (fix-body! -+ "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_label_get_label(label)));")) - - (define-cproc-fix gtk-label-get-seleciton-bounds - (fix-arguments! '(label::<gtk-label>)) -@@ -1121,9 +1129,11 @@ return SCM_MAKE_STR_COPYING((char*)string);")) - - (input-file "gtkprogressbar.h") - --(define-cproc gtk-progress-bar-get-text (pbar::<gtk-progress-bar>) -- "gchar *g = gtk_progress_bar_get_text(pbar); -- SCM_RETURN(SCM_MAKE_STR_COPYING_SAFELY(g));") -+(define-cproc-fix gtk-progress-bar-get-text -+ (fix-arguments! '(pbar::<gtk-progress-bar>)) -+ (fix-body! -+ "gchar *g = gtk_progress_bar_get_text(pbar); -+ SCM_RETURN(SCM_MAKE_STR_COPYING_SAFELY(g));")) - - ;;================================================================== - ;; gtkradiobutton diff --git a/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-cpp.diff b/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-cpp.diff deleted file mode 100644 index 081c83df1fe5..000000000000 --- a/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-cpp.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- a/lib/h2s/parse.scm -+++ b/lib/h2s/parse.scm -@@ -329,6 +329,8 @@ - (#/^\}\s*([\w_]+)/ (#f name) (make-enum name (reverse enums))) ; -----> - ;; empty line: - (#/^\s*$/ () (loop (read-line) enums)) -+ ;; preprocessor directive: -+ (#/^\s*#\s*\w+/ () (loop (read-line) enums)) - ;; - (test has-comment? (skip-comment line (cut loop <> enums) err-eof)) ; what if?: new_value, /* boring comment*/ - (#/\s+([\w_]+),?/ (#f enum) diff --git a/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-gdk-pixbuf.diff b/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-gdk-pixbuf.diff deleted file mode 100644 index 9e8bbcf6e72d..000000000000 --- a/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-gdk-pixbuf.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- a/src/h2s-gtk.scm -+++ b/src/h2s-gtk.scm -@@ -50,6 +50,11 @@ - (define pango-directory - (find-header-dir #`"pango-,|pango-version|/pango/pango.h" - *header-search-paths*)) -+(define gdk-pixbuf-directory -+ (guard (e [(<error> e) -+ gtk-directory]) -+ (find-header-dir #`"gdk-pixbuf-,|gtk-version|/gdk-pixbuf/gdk-pixbuf.h" -+ *header-search-paths* ))) - - - (define (parse-gdk) -@@ -64,7 +69,7 @@ - (call-with-input-file "PANGOFILES" port->string-list))) - - (define (parse-gdk-pixbuf) -- (parse-headers #`",|gtk-directory|/gdk-pixbuf" -+ (parse-headers #`",|gdk-pixbuf-directory|/gdk-pixbuf" - (call-with-input-file "GDKPIXBUFFILES" port->string-list))) - - ;; defaults for the gauche-gtk package: diff --git a/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild b/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild index 83b465480233..258e582076d3 100644 --- a/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild +++ b/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild @@ -1,21 +1,21 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="4" +EAPI="6" -inherit autotools eutils +inherit autotools vcs-snapshot MY_P="${P/g/G}" MY_PN="${PN/g/G}2" -PV_COMMIT="598828842a339a44c32ab8c16f5f9a77f3c1c799" +PV_COMMIT="6fca535f7bb950f81db066bd1afdca9d55e9b460" DESCRIPTION="GTK2 binding for Gauche" HOMEPAGE="http://practical-scheme.net/gauche/" -SRC_URI="https://github.com/shirok/${MY_PN}/tarball/${PV_COMMIT} -> ${MY_P}.tar.gz" +SRC_URI="https://github.com/shirok/${MY_PN}/archive/${PV_COMMIT}.tar.gz -> ${MY_P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~ppc x86" +KEYWORDS="~amd64 ~ppc x86" IUSE="examples glgd nls opengl" RESTRICT="test" @@ -27,29 +27,28 @@ RDEPEND="x11-libs/gtk+:2 x11-libs/gtkglext dev-scheme/gauche-gl )" -S="${WORKDIR}/shirok-${MY_PN}-${PV_COMMIT:0:7}" +S="${WORKDIR}/${MY_P}" src_prepare() { - epatch "${FILESDIR}"/${PN}-h2s-gdk-pixbuf.diff - epatch "${FILESDIR}"/${PN}-gtk-lib.hints.diff - epatch "${FILESDIR}"/${PN}-h2s-cpp.diff + default eautoconf } src_configure() { - local myconf + local myconf=() if use opengl; then if use glgd; then - myconf="--enable-glgd" if use nls; then - myconf="${myconf}-pango" + myconf+=( --enable-glgd-pango ) + else + myconf+=( --enable-glgd ) fi else - myconf="--enable-gtkgl" + myconf+=( --enable-gtkgl ) fi fi - econf ${myconf} + econf "${myconf[@]}" } src_compile() { @@ -58,8 +57,7 @@ src_compile() { } src_install() { - emake DESTDIR="${D}" install - dodoc ChangeLog README + default if use examples; then docompress -x /usr/share/doc/${PF}/examples diff --git a/dev-scheme/gauche-gtk/metadata.xml b/dev-scheme/gauche-gtk/metadata.xml index 883d438926be..4dd4d4ed3fd8 100644 --- a/dev-scheme/gauche-gtk/metadata.xml +++ b/dev-scheme/gauche-gtk/metadata.xml @@ -3,6 +3,7 @@ <pkgmetadata> <maintainer type="person"> <email>hattya@gentoo.org</email> + <name>Akinori Hattori</name> </maintainer> <longdescription> Gauche extension module to use GTK. |