diff options
Diffstat (limited to 'x11-misc/pdfpres')
-rw-r--r-- | x11-misc/pdfpres/Manifest | 3 | ||||
-rw-r--r-- | x11-misc/pdfpres/files/pdfpres-0.2.3_p1-fix_fullscreen.patch | 50 | ||||
-rw-r--r-- | x11-misc/pdfpres/pdfpres-0.2.3_p1.ebuild | 33 |
3 files changed, 86 insertions, 0 deletions
diff --git a/x11-misc/pdfpres/Manifest b/x11-misc/pdfpres/Manifest new file mode 100644 index 0000000..076ae63 --- /dev/null +++ b/x11-misc/pdfpres/Manifest @@ -0,0 +1,3 @@ +AUX pdfpres-0.2.3_p1-fix_fullscreen.patch 1866 SHA256 0635b34491540722203b9b7067b5e8be563d03ce7e6e6b5d26d5af48bbb8c71a SHA512 8dbaf2924823bcaa2ea8cec8b71a78336a32579472d2f2c2d118361246a024cb3e3a8d71cfa79b50700b082cd7a675201aed83e5e412e2a9edbebdcff3d06a42 WHIRLPOOL 9bdfacb4c941d57de8ff23fa0652414d539b45d1eef200a108a4bae520d09a3edeca9d05de27f0209aea3f144944f382b937b18b4f3fa6759282dec1dabbcdaa +DIST pdfpres-0.2.3_p1.tar.gz 37139 SHA256 39c22e335cc6c55f6dc2bb3da83ab5128a36701e81d7bd71b5d8cddcf1eca147 SHA512 386f17452730e4a7e4bf710b407ff241cd263d3a95ab85f16844ad7898e7b207c51d32ca570e5ff8c5f2a362c28796adb9af3effb43d9cff8591537334ad3cf4 WHIRLPOOL ad4d8b003f57be717da4642316563e41d930212b1ed89b2b2a5934bdf3e5d9c3c1cc0e3f189ab49d550fad1eb9a0d43953d4b0863ebfa3391ea826564db362e4 +EBUILD pdfpres-0.2.3_p1.ebuild 765 SHA256 6f6575ec72b902339bc6a0b476bbc70903edd91ae4644be1c37444320b368531 SHA512 cba7aea70a1660108360db6a6ef7d9f520e2614efe4aa7e7489869a25896b359d59aa107c5746413be37d1581167be42ad651eb5de3f2d90f88a7f394ce38110 WHIRLPOOL a33d5492b2b1c8c415429ac6dc4b772f8a516fcfee6053b14d8d7c57e4496b855737738ba4682d38070252b5a129d190cdfda50a4cc488a745a7ee3d732b4d68 diff --git a/x11-misc/pdfpres/files/pdfpres-0.2.3_p1-fix_fullscreen.patch b/x11-misc/pdfpres/files/pdfpres-0.2.3_p1-fix_fullscreen.patch new file mode 100644 index 0000000..efeae21 --- /dev/null +++ b/x11-misc/pdfpres/files/pdfpres-0.2.3_p1-fix_fullscreen.patch @@ -0,0 +1,50 @@ +commit dbf3e3edba7cf22d5e643a7db8a89daa09d5bad9 +Author: René Neumann <rene.neumann@in.tum.de> +Date: Fri May 24 13:34:42 2013 +0200 + + Revert "Don't use gtk_widget_set_size_request()." + + This reverts commit 553ba0f36948b56137b9476a26d55817cacc9d1a. + Else fullscreen is broken for the control window. + +diff --git a/pdfpres.c b/pdfpres.c +index 1166b3f..7352205 100644 +--- a/pdfpres.c ++++ b/pdfpres.c +@@ -1523,6 +1523,7 @@ static void initGUI(int numframes, gchar *notefile) + gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(notePad), FALSE); + g_signal_connect(G_OBJECT(notePad), "key_press_event", + G_CALLBACK(onPadKeyPressed), NULL); ++ gtk_widget_set_size_request(notePad, 200, 50); + + /* Remarks: + * +@@ -1623,6 +1624,7 @@ static void initGUI(int numframes, gchar *notefile) + /* create a new drawing area - the pdf will be rendered in + * there */ + image = gtk_image_new(); ++ gtk_widget_set_size_request(image, 100, 100); + + /* add widgets to their parents. the image is placed in an + * eventbox, the box's size_allocate signal will be handled. so, +@@ -1724,6 +1726,7 @@ static void initGUI(int numframes, gchar *notefile) + + /* add a rendering area to the beamer window */ + image = gtk_image_new(); ++ gtk_widget_set_size_request(image, 320, 240); + + gtk_container_add(GTK_CONTAINER(win_beamer), image); + +@@ -1751,12 +1754,6 @@ static void initGUI(int numframes, gchar *notefile) + showNotesFromFile(notefile); + } + +- /* Set default sizes for both windows. (Note: If the widgets don't +- * fit into that space, the windows will be larger. Also, they are +- * allowed to get shrinked by the user.) */ +- gtk_window_set_default_size(GTK_WINDOW(win_preview), 640, 480); +- gtk_window_set_default_size(GTK_WINDOW(win_beamer), 320, 240); +- + /* show the windows */ + gtk_widget_show_all(win_preview); + gtk_widget_show_all(win_beamer); diff --git a/x11-misc/pdfpres/pdfpres-0.2.3_p1.ebuild b/x11-misc/pdfpres/pdfpres-0.2.3_p1.ebuild new file mode 100644 index 0000000..0986cf7 --- /dev/null +++ b/x11-misc/pdfpres/pdfpres-0.2.3_p1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +PYTHON_DEPEND="2" + +inherit eutils python vcs-snapshot + +REV=404908827b4eb1eef8e54a71dbb7067b270fbc1b + +DESCRIPTION="Dual head PDF presenter" +HOMEPAGE="http://www.uninformativ.de/projects/?q=pdfpres" +SRC_URI="https://github.com/vain/${PN}/archive/${REV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}/${P}-fix_fullscreen.patch" +} + +src_install() { + dodoc README || die + + newbin legacy-notes-converter.py ${PN}-legacy-notes-converter || die + python_convert_shebangs 2 "${D}"/usr/bin/${PN}-legacy-notes-converter || die + + dobin ${PN} || die + doman man1/${PN}.1 || die +} |