diff options
Diffstat (limited to 'sci-visualization/gle')
-rw-r--r-- | sci-visualization/gle/Manifest | 5 | ||||
-rw-r--r-- | sci-visualization/gle/files/license.patch | 11 | ||||
-rw-r--r-- | sci-visualization/gle/files/tiff.patch | 9 | ||||
-rw-r--r-- | sci-visualization/gle/gle-4.3.4.ebuild | 84 |
4 files changed, 109 insertions, 0 deletions
diff --git a/sci-visualization/gle/Manifest b/sci-visualization/gle/Manifest index 68d0b529f46d..2dc7fb646ba2 100644 --- a/sci-visualization/gle/Manifest +++ b/sci-visualization/gle/Manifest @@ -5,12 +5,17 @@ AUX ghostscript.patch 972 BLAKE2B 3750321b5093400595070290c9c9af948eae797e6365be AUX gle.sh 65 BLAKE2B 8e045866b0d20a77e3e2de050d90f0b0f8efa3a57481ecf2b01ad3c0f81d5ecd9e4d054b20ca488f282dbd111b6997113232fc984d628d9d9b60e3287511b912 SHA512 90ca83947538d2342702ea60974780a3f303c223989a43f5fe117b5d97b650827d074adcd011a15c0716b3a9cd54913a661ebe59a3afba06d51e0a889f14fda8 AUX install.patch 821 BLAKE2B b8ca829a3e5f3fa96695ba28ff7e7170badc5a3f8f629a91cc6f2f16db5a5b3c0b18cb5c361e96f449304cc793d8e14f93c2c06b5ec7e27649662f1daad9f554 SHA512 1d22cdb507e3322c61bc69ef8ce12b32a9b58a2c6b634b7282d795e5ab66a10d19525e15351dee6a2ec136773ab28952de87cd10216c0acb782f2f441a3dcddd AUX lic.patch 329 BLAKE2B 75445082d509836f3ff7d5c88c182486d2fdeb22cba77a96ee879073b5e6865ae2522978ef73f715f11cda323d51bb763e4189eca8aab213e4dafeaf6b33a4f3 SHA512 858b7dc4a226a48d3ee5692ab58db5975f202ffe1a885eb0e5272c359d3f9020fd38b9ccf2f1d605f90b6d749dc1674650e020d7eac99b4a4bfd808c47ee0052 +AUX license.patch 359 BLAKE2B 2a3883493c1a261b82d85c480489a446fc8b4343a45d9116bfdaa639dd3396ae37aaa275e6cada5e5f230a08f31ddda3dcd83e68edae7dbaee8307fb4a2513d0 SHA512 1580e059ef30ab0091b3f1209eaf749d6d32182a1056397fc4b37fa3f23d3636b4f0c0c3d175585237da49d3cb192764a4114d0df2419359031ab2ed7a5b1c3e AUX link.patch 635 BLAKE2B bf4f93fae6dd7d8a14b3f6bd180a1e275511087fc3b8acd7c8b2a14fb5c163f884696a5dcc98bd11825c2e03ad65b1c2f1a695dbeae7f50cb555000fb3803474 SHA512 5d4e3255a066cbf4d442a778064edddaae007176420734b516b52d924573d23041128a99139a58be1cb5c2e858e6bb9b3a6f1ae81f8b9b823ffd8417547fb0d0 +AUX tiff.patch 287 BLAKE2B 3c886d12bf543bf68755a2ece210cba4719157b34114e1a5286638423970025b948803a7cb2c390ad71436c81f7517990a78ad1b2b5e6e626275c9ea7a5dbc79 SHA512 b285a204f2069091ba38900fcd90c693838da7034847b54e663242bd860aeb5ed3bd91e19ce5cd6235393be09e02a3e5dc05a1050f5f0938dfd185720a7e1269 AUX wayland.patch 347 BLAKE2B e4bff5717aee0ea83a7fdb7047a0363c34a225809246f33b7da92b9f535d9e412047bdb9e22436629bbc7b11be55838e64f624e870c4f60f4634d28aac21e3d7 SHA512 a51b030de9ffc7fd83e04271a191ba352cfd670a149249c0bf6415d4583c8402a4cc6930aa849bbab2d8c11f4934f21ffdba36c8fc78ba235ced6e2b9ca0b03d DIST gle-4.3.3.tar.gz 1788614 BLAKE2B 3f608a8dad32d02b06808d5b2cfe4a2beb2c076c74e2972be2e94fe56bf24190b9cc7c69f45f1b02d399354f827c43722029871d6355bc0e4abe003f71b2bf82 SHA512 191dde025828f3376c7241e0580fcd459c743fe947f69cc3be1345b43c1d2587852a0d002dfdab7d8b7b45fd30e6bf4e8a4b5c73bcc2f3ce2fd08aa41d799b03 +DIST gle-4.3.4.tar.gz 1791581 BLAKE2B a26fcafb3390fcf083a0d3008e22f3e998b71ba44f373fabf5feb8fd494fe8be8941e6f6118e1062b4ad4330a5e2e722b890edecaeba3a7640af954c7067b8d6 SHA512 5b59e0a51b466313b6ae53419137a25764f2b0c4eed8be217e30ba73245afbdbbd74228f5539b50f47dccfd5448be12b18ffa0e935a663bfd2073bb5d5eafeac DIST gle-c++17.patch.gz 18738 BLAKE2B e0d91aedf2121897336be72d8ad5878be95cf15982b38efb2fda86605d6e0f01b792013a9ab6407692254e5c074630daede05bcf97f349541dd979b21eb2ff15 SHA512 3bc4e335577f94eafd140cd64f2ada1926b1679c113de1f0bb0dd1afed67210470340470b19d89dae4ae1ef433f05120332a465711afb4e637e3cf0c6db68ace DIST gle-library.tar.gz 1073620 BLAKE2B 051f9584dbf3195c7598ae54b12ab8d373e8054e8ff4c3d1dfed70319c29c5cb8bb1f0baff127768bcf9e36e4f52be3b3238e786e1598d1cdfbd6d1af6d6bdd3 SHA512 af6a46f2bd945714679eb9d8ca4c70ca9a741cf6652590eb3a8d9422059f49ce3d2c33418c37899bd54f9e0bc0085ae82ffd2f2b84b77879e2f2d09a0026d12a +DIST gle-manual.pdf 3950922 BLAKE2B 7151b88bdbcf55c6a23b2190cbc00d1cbec78c3026487337f0bbe2746b22ecf81f549b6e778fcf1f82adc6a71805f3ed7c45bda40328b86a56ef2b78c1fffc4d SHA512 78eef1e97bfbe1a1897b22b7650fba08e170708cf53adfd22cd432081497e2c5845534e43549e7fd5b9e3c9e7e1c937dbc0b64b35c5416ce4cf143c55e5a56a9 DIST gle-manual.pdf.gz 1878050 BLAKE2B 6ebd3c0214ab8aee3e5a32d1e1cdf1c001cd09325c80a506a1e41f4eb3ec8869b75083c741a5cf8b2f3faf1d2cb0c6cfeca835daa284263598f749109904cc11 SHA512 7cc796626fa19541558004250a4a5b206ead7ba704c76fd948693aca144e70926b8213ee8b062841bffedc631eb39a255d69387bbee4a5acc7edc6d093e3113f DIST gle-mode.el.gz 7359 BLAKE2B bcbc61651f87f3ee1d079fc0a0de38788523a5ee33f56087b89f4e15b9ef5ee4010cf47679c38da3dfae1954ddbfee4728d10c0af6530f645ff63ab2b219da09 SHA512 c8d291c23f53346d8a44b7d95d737da88c6ec0af597fb8298a564a5567a9e9a0db658d14c3cb43157d58614e65cf2293eaeb01528a7a49722a2da07e16f940e1 EBUILD gle-4.3.3-r3.ebuild 2469 BLAKE2B 14d223de9a2bee0d41f9f48efc97d38458268bd6ca84c31806786ee3187c2b6ef836bb038eaaa6e49fb5b551fe7ca5e0fcd13bb31aca7ddea5dfdf11a1cbc697 SHA512 34e00d60b5bc676d76d7c91dd89e2e56378ff28273ef7926ece9a2538c4ac2b04908957041fc165a58bb6f1914bb7cae872a9e9a44172fe7a5542ba934a370ad +EBUILD gle-4.3.4.ebuild 2242 BLAKE2B 793af190afd97d20c2ab28621c73e65487fd72e87b092887eb567a575de93e14dfb9c88ce2404a8554219898e73f6081ea3f86db755e82224cf7bf4486449ac4 SHA512 429c0ad0f0d74cc32a8a1e60595d9af34a7d33282ea80d17a55e4d0fb5e40ba18d86177a647523f6b4f5f186ad0fcc16ea33d7fd79290966b4c981981c920aba MISC metadata.xml 758 BLAKE2B ea6e049fe37e4fc4cc9510774bb13ec9d2107ca1e4078a9bf22afadb59a375ced01aab6cffc674bcce01e4e51960db830e7a381600322f903f6b1407cd11ae13 SHA512 953fa5de474729f4196392b9ccb09d9a07799c26d5e5ef3422bc8e737bb666c8bd66e1931c225d049e30be31fc427909225d5457b95c78de2f2073d0108d2620 diff --git a/sci-visualization/gle/files/license.patch b/sci-visualization/gle/files/license.patch new file mode 100644 index 000000000000..05b44088f420 --- /dev/null +++ b/sci-visualization/gle/files/license.patch @@ -0,0 +1,11 @@ +diff -r -U3 src.orig/CMakeLists.txt src/CMakeLists.txt +--- src.orig/CMakeLists.txt 2023-04-11 07:46:19.000000000 +0700 ++++ src/CMakeLists.txt 2023-04-12 21:54:22.107770167 +0700 +@@ -461,7 +461,6 @@ + + # documentation file installation in doc folder + install(FILES +- ../doc/LICENSE.txt + ../doc/README.txt + ../doc/ChangeLog.txt + CONFIGURATIONS Release Debug diff --git a/sci-visualization/gle/files/tiff.patch b/sci-visualization/gle/files/tiff.patch new file mode 100644 index 000000000000..98bdc2e018d8 --- /dev/null +++ b/sci-visualization/gle/files/tiff.patch @@ -0,0 +1,9 @@ +diff -r -U2 src.orig/gui/CMakeLists.txt src/gui/CMakeLists.txt +--- src.orig/gui/CMakeLists.txt 2023-04-11 07:46:19.000000000 +0700 ++++ src/gui/CMakeLists.txt 2023-08-21 13:00:21.039704497 +0700 +@@ -70,4 +70,5 @@ + ${PNG_LIBRARIES} + ${PIXMAN_LIBRARIES} ++ TIFF::TIFF + Qt::Core + Qt::Gui diff --git a/sci-visualization/gle/gle-4.3.4.ebuild b/sci-visualization/gle/gle-4.3.4.ebuild new file mode 100644 index 000000000000..7602f290b544 --- /dev/null +++ b/sci-visualization/gle/gle-4.3.4.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake elisp-common + +DESCRIPTION="Graphics Layout Engine" +HOMEPAGE="http://glx.sourceforge.io/ https://github.com/vlabella/GLE/" +IUSE="doc emacs" +LIB_VERSION="d476418f006b001dc7f47dcafb413c0557fa44a7" +SRC_URI="https://github.com/vlabella/GLE/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/vlabella/gle-library/archive/${LIB_VERSION}.tar.gz -> ${PN}-library.tar.gz + doc? ( https://github.com/vlabella/GLE/releases/download/v${PV}/gle-manual.pdf ) + emacs? ( https://dev.gentoo.org/~grozin/gle-mode.el.gz )" +S="${WORKDIR}"/GLE-${PV}/src + +LICENSE="BSD GPL-2+" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="app-text/ghostscript-gpl + dev-libs/boost + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtopengl:5 + dev-qt/qtwidgets:5 + media-libs/freeglut + media-libs/glu + media-libs/libpng + media-libs/tiff + sys-libs/zlib + media-libs/libjpeg-turbo + x11-libs/cairo + x11-libs/pixman + emacs? ( app-editors/emacs:* )" +RDEPEND="${DEPEND} + virtual/latex-base" + +PATCHES=( "${FILESDIR}"/license.patch "${FILESDIR}"/tiff.patch ) +SITEFILE="64${PN}-gentoo.el" + +src_configure() { + local mycmakeargs=( + -DGLE_EXAMPLES_LIBRARY_PATH="${WORKDIR}"/gle-library-${LIB_VERSION} + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + use emacs && elisp-compile "${WORKDIR}"/*.el +} + +src_install() { + pushd "${WORKDIR}"/GLE-${PV}/src_build > /dev/null || die "pushd failed" + newbin gle/gle gle.bin + dobin gui/qgle + insinto /usr/share/${PN} + doins gle/glerc + doins -r gle/font + popd > /dev/null + newbin "${FILESDIR}"/gle.sh gle + dodoc ../doc/README.txt ../doc/ChangeLog.txt + doins TeX/init.tex + mv "${WORKDIR}"/gle-library-${LIB_VERSION}/include "${WORKDIR}"/gle-library-${LIB_VERSION}/gleinc || die "mv failed" + doins -r "${WORKDIR}"/gle-library-${LIB_VERSION}/gleinc + GLE_TOP="${D}"/usr/share/${PN} "${D}"/usr/bin/gle.bin -mkinittex + use doc && dodoc "${DISTDIR}"/*.pdf + if use emacs; then + elisp-install ${PN} "${WORKDIR}"/*.el "${WORKDIR}"/*.elc + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |