diff options
author | 2017-02-28 20:05:54 +0000 | |
---|---|---|
committer | 2017-02-28 20:05:54 +0000 | |
commit | b22e9d922123cd9d0fc917ae324f6e195e41da96 (patch) | |
tree | ae0b75201ae6ec34bf95b26b634272cb7b1e30f9 | |
parent | sci-biology/gbench: version bump (diff) | |
parent | sci-mathematics/gismo: version bump (#743) (diff) | |
download | sci-b22e9d922123cd9d0fc917ae324f6e195e41da96.tar.gz sci-b22e9d922123cd9d0fc917ae324f6e195e41da96.tar.bz2 sci-b22e9d922123cd9d0fc917ae324f6e195e41da96.zip |
Merge remote-tracking branch 'github/master'
* github/master:
sci-mathematics/gismo: version bump (#743)
dev-util/emscripten: version bump to 1.37.3
sci-misc/sfst: Version bump (#740)
sci-misc/openfst: Version bump (#739)
17 files changed, 133 insertions, 110 deletions
diff --git a/dev-util/emscripten-fastcomp/Manifest b/dev-util/emscripten-fastcomp/Manifest index 48248d533..2c5eb865b 100644 --- a/dev-util/emscripten-fastcomp/Manifest +++ b/dev-util/emscripten-fastcomp/Manifest @@ -1,2 +1,2 @@ -DIST emscripten-fastcomp-1.37.1.tar.gz 26570470 SHA256 e73d8852d78aa466519d2fc4dc902a2069e0e7cc3cc0446bb0264133c7e9c5c9 SHA512 b14a597d58990e13b22d5591765019310c2190846d2c66017ed5a4b966d92b1907b059e18e3128aebc9bfb64d0a383ca4f7f64da3862ed9428ab12bb5989c339 WHIRLPOOL 8909f8d89a6caf237577eb45d62eddf2f5cab00b98672cde8871267ae28ac6a1dcbf316bcaee710ce8043f4e9ee5cc2b7ecc8fa83bcf2d4121e30d38fa59c590 -DIST emscripten-fastcomp-clang-1.37.1.tar.gz 14349735 SHA256 d7c8761652eafca1eaec0484f6021c14a5e6fbfc922d0b2551e37be458e39c8d SHA512 0b56ac358825f89aff474dab3735973e2b1bd58f4b16950765a80e7417e3938e857b474548ac1dd1d9ad629865866b6ad8ff5c6a0294e7795f530412a0160fd1 WHIRLPOOL 7a37a0e57fd356f1789d44f8db2799c16c14d3667b39bdf0607bcb983e5bc92c9daf4a113318d705fb4a8d22aac2f7b374dcb59ac1788ee320483076cda98c34 +DIST emscripten-fastcomp-1.37.3.tar.gz 26570412 SHA256 035f1e97247e7d7c6d381de3823926c5a10d2491ebc8312cbdf9fe010a4b4f36 SHA512 d1bd8c1358522b95dc2ca992d6f0e2aee6fdc209a8baa58ac7312633a1346dc301b2bda0add9cc3c4b576fce4ff17a6dd54fd93655f731e7395d21288d4f6b54 WHIRLPOOL 2e1ea8e453138cd9ba44f331311ba0f9bd992f3f9b2f106237dbd9518f411abdb53d2e2687e2ad97d9caa9e456bdc78a73e435cc51febed2da814b7ceab2e6ea +DIST emscripten-fastcomp-clang-1.37.3.tar.gz 14348776 SHA256 78b4434e40d7ca429a3a6e437b7edae774e310a56118b1ae10cd581b27eb6a25 SHA512 75fea6fdcfea1577333a9ab77b3081db79c07e483e78a27d1a6056163050f3f923d5ad88a24e85bef70561f5197c80eaa8b2fec87e4d24810fe7a926ff7d2319 WHIRLPOOL 3d27944faed1a44c439e810bae5513374cdb123f88f946cf9caf580203aa3651be9be9f0ca34da6c7c1914ef166c16f36cbcdbea50801e84a5da08e30e4bbeaa diff --git a/dev-util/emscripten-fastcomp/emscripten-fastcomp-1.37.1.ebuild b/dev-util/emscripten-fastcomp/emscripten-fastcomp-1.37.3.ebuild index 9d88ee46c..a0b88e6d5 100644 --- a/dev-util/emscripten-fastcomp/emscripten-fastcomp-1.37.1.ebuild +++ b/dev-util/emscripten-fastcomp/emscripten-fastcomp-1.37.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -18,7 +18,7 @@ LICENSE="UoI-NCSA" REQUIRED_USE="${PYTHON_REQUIRED_USE}" MY_DEPEND="${PYTHON_DEPS} - >=net-libs/nodejs-0.12.6" + >=net-libs/nodejs-0.12.10" DEPEND="${MY_DEPEND} >=dev-util/cmake-3.4.3" RDEPEND="${MY_DEPEND} diff --git a/dev-util/emscripten-fastcomp/files/1.37.1/CMakeLists.txt.patch b/dev-util/emscripten-fastcomp/files/1.37.3/CMakeLists.txt.patch index d053132a3..d053132a3 100644 --- a/dev-util/emscripten-fastcomp/files/1.37.1/CMakeLists.txt.patch +++ b/dev-util/emscripten-fastcomp/files/1.37.3/CMakeLists.txt.patch diff --git a/dev-util/emscripten-fastcomp/files/1.37.1/Version.cpp.patch b/dev-util/emscripten-fastcomp/files/1.37.3/Version.cpp.patch index 291a1ea6d..291a1ea6d 100644 --- a/dev-util/emscripten-fastcomp/files/1.37.1/Version.cpp.patch +++ b/dev-util/emscripten-fastcomp/files/1.37.3/Version.cpp.patch diff --git a/dev-util/emscripten/Manifest b/dev-util/emscripten/Manifest index f9194b212..900ba0031 100644 --- a/dev-util/emscripten/Manifest +++ b/dev-util/emscripten/Manifest @@ -1 +1 @@ -DIST emscripten-1.37.1.tar.gz 32114501 SHA256 f553e7e5ab3611501b0478513f6d96f343027b04bd0317bb2c7239ebbfddf523 SHA512 99676dc3731a511615e06eb21e8ffd762d775fefd59164594bbe79505d3f02f35db173e98579587c20a9c7d28df13844497f282baece07e84eb581dad7c50bab WHIRLPOOL 45cfdded2e9f186a6a5af3ab05af67922712e039453778fcdb187ab77dd49c91b865803e376adaf905c9e556b0577a7196897c90d8d8ec33af192a87371369b4 +DIST emscripten-1.37.3.tar.gz 32194871 SHA256 2c5dd2dfe187a7660c650b783207335e8295f14291b95b1109b353e1bd991db1 SHA512 d31712a7490423251a773f19be55661d175a89391458292d7aaafb7f557fa8baad73ba7ed335d5da775a9ba29256329b5a5d5034929b7fae3d4dc83e3432e85c WHIRLPOOL 93080546061dc48409a708559180022c9d94023b804f17c17c33af94e9d135d8f43b8151af0b9709ec75005f26c2921601ecab9e4993c14303f9bd02c7f01ee8 diff --git a/dev-util/emscripten/emscripten-1.37.1.ebuild b/dev-util/emscripten/emscripten-1.37.3.ebuild index 76720ffb2..51a451856 100644 --- a/dev-util/emscripten/emscripten-1.37.1.ebuild +++ b/dev-util/emscripten/emscripten-1.37.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -17,8 +17,7 @@ LICENSE="UoI-NCSA" REQUIRED_USE="${PYTHON_REQUIRED_USE}" DEPEND="${PYTHON_DEPS} - ~dev-util/emscripten-fastcomp-${PV} - >=net-libs/nodejs-0.12.6" + ~dev-util/emscripten-fastcomp-${PV}" RDEPEND="${DEPEND}" DEST="/usr/share/" diff --git a/dev-util/emscripten/files/1.37.1/emcc.patch b/dev-util/emscripten/files/1.37.3/emcc.patch index 49bf9fd0b..49bf9fd0b 100644 --- a/dev-util/emscripten/files/1.37.1/emcc.patch +++ b/dev-util/emscripten/files/1.37.3/emcc.patch diff --git a/dev-util/emscripten/files/1.37.1/emcmake.patch b/dev-util/emscripten/files/1.37.3/emcmake.patch index 02ce70321..02ce70321 100644 --- a/dev-util/emscripten/files/1.37.1/emcmake.patch +++ b/dev-util/emscripten/files/1.37.3/emcmake.patch diff --git a/sci-mathematics/gismo/Manifest b/sci-mathematics/gismo/Manifest index a0cf16aae..aea878b91 100644 --- a/sci-mathematics/gismo/Manifest +++ b/sci-mathematics/gismo/Manifest @@ -1 +1 @@ -DIST gismo-0.8.1.tar.gz 3328760 SHA256 03d25bda9d0d311fdc142c6e113ff9018e7f87737e6c70c2df441c28adeb2013 SHA512 3dac7ddb08d7f651027cb4539ec7c48b82e43948b9567f4a716c37b539693d482ef7fd4467fb60085059d5c76633b69056f08db8e7ba05373383168460850227 WHIRLPOOL 3f6c5b9c2c1baceb94802f99c9ff4afaa78f9f403ca1c469feea31bc1de3a5eb22f558f38fd3423169280690c2811b0729d2e7162a755e492529752dc990dcfd +DIST gismo-2017.02.16.tar.gz 4370643 SHA256 0ef03916d62b2273fd5ca2e2dfbe22a9771b31f4e9a83a5ba75d0a746719f167 SHA512 c9d9e3541e1195eca84f75217f1bfb2444db4fdca936fa32513cdabbc89a482be8b940345dd3fff2bea0b0a0806b7aff0c0c4484505a2d0451aa7ab6e923291d WHIRLPOOL ab1b376f50456c0be391034f3027a7ea8bc39453d32a2b2113cd19dcbb5247c390a5ae87cd99f8e936082af92947d67c18e3eb2d1aacaf369fa684323e73e234 diff --git a/sci-mathematics/gismo/files/doc-install.patch b/sci-mathematics/gismo/files/doc-install.patch deleted file mode 100644 index 6f730bd3e..000000000 --- a/sci-mathematics/gismo/files/doc-install.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- cmake/gsInstall.cmake 2015-08-08 12:39:45.000000000 +0200 -+++ cmake/gsInstall.cmake 2015-10-15 19:08:34.735776106 +0200 -@@ -1,6 +1,15 @@ --## ################################################################# -+###################################################################### -+## gsIntall.cmake --- -+## This file is part of the G+Smo library. -+## -+## Author: Angelos Mantzaflaris -+## Author: Harald Weiner -+## Copyright (C) 2012-2015 - RICAM-Linz. -+###################################################################### -+ -+###################################################################### - ## Installation --## ################################################################# -+###################################################################### - - message (" CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}") - -@@ -128,3 +137,25 @@ - message ("Configure with -DGISMO_BUILD_LIB=ON to compile the library") - endif(GISMO_BUILD_LIB) - -+# Install docs (if available) -+set(DOC_SRC_DIR "${PROJECT_BINARY_DIR}/doc/html/") -+#message("DOC_SRC_DIR='${DOC_SRC_DIR}'") -+ -+set(TMP_VERSION "${gismo_VERSION}") -+string(REGEX REPLACE "[a-zA-Z]+" "" TMP_VERSION ${TMP_VERSION}) -+#message("TMP_VERSION='${TMP_VERSION}'") -+set(DOC_INSTALL_DIR share/doc/gismo-${TMP_VERSION} CACHE PATH -+ "Installation directory for documentation") -+#message("DOC_INSTALL_DIR='${DOC_INSTALL_DIR}'") -+ -+install(DIRECTORY "${DOC_SRC_DIR}" -+ DESTINATION "${DOC_INSTALL_DIR}/" -+ USE_SOURCE_PERMISSIONS -+ OPTIONAL -+ FILES_MATCHING -+ PATTERN "*.css" -+ PATTERN "*.html" -+ PATTERN "*.js" -+ PATTERN "*.jpg" -+ PATTERN "*.png" -+) diff --git a/sci-mathematics/gismo/files/examples-CMakeLists.patch b/sci-mathematics/gismo/files/examples-CMakeLists.patch deleted file mode 100644 index 980f4825c..000000000 --- a/sci-mathematics/gismo/files/examples-CMakeLists.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- examples/CMakeLists.txt 2015-08-08 12:39:45.000000000 +0200 -+++ examples/CMakeLists.txt 2015-10-14 16:19:16.387637011 +0200 -@@ -1,7 +1,8 @@ - ### CMakeLists.txt --- - ## - ## Author: Angelos Mantzaflaris --## Copyright (C) 2012 - RICAM-Linz. -+## Author: Harald Weiner -+## Copyright (C) 2012-2015 - RICAM-Linz. - ###################################################################### - - cmake_minimum_required(VERSION 2.8.8) -@@ -11,7 +12,12 @@ - cmake_policy(SET CMP0048 OLD) - endif() - --project(gismo-examples) -+project(examples) -+ -+# Add a grouping target that builds all tests this is equivalent to -+# running "make" inside the tests build folder -+add_custom_target(${PROJECT_NAME}) -+set_property(TARGET ${PROJECT_NAME} PROPERTY LABELS "${PROJECT_NAME};gismo") - - #find_package(gismo REQUIRED) - #include_directories( ${GISMO_INCLUDE_DIRS}) -@@ -24,6 +30,19 @@ - - foreach(file ${FILES}) - add_gismo_executable(${file}) -+ get_filename_component(tarname ${file} NAME_WE) # name without extension -+ set_property(TEST ${tarname} PROPERTY LABELS "${PROJECT_NAME};gismo") -+ add_dependencies(${PROJECT_NAME} ${tarname}) -+ # install the example executables to <CMAKE_INSTALL_PREFIX>/bin/ -+ # message("install_bin_dir='${INSTALL_BIN_DIR}'") -+ # message("targets add='${tarname}'") -+ install(TARGETS ${tarname} -+ DESTINATION "${INSTALL_BIN_DIR}/" -+ PERMISSIONS -+ OWNER_READ OWNER_WRITE OWNER_EXECUTE -+ GROUP_READ GROUP_WRITE GROUP_EXECUTE -+ WORLD_READ WORLD_EXECUTE -+ ) - endforeach(file ${FILES}) - - list(LENGTH FILES len) diff --git a/sci-mathematics/gismo/gismo-0.8.1.ebuild b/sci-mathematics/gismo/gismo-2017.02.16.ebuild index 86eea9414..e3a8f1869 100644 --- a/sci-mathematics/gismo/gismo-0.8.1.ebuild +++ b/sci-mathematics/gismo/gismo-2017.02.16.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=6 inherit cmake-utils eutils DESCRIPTION='C++ library for geometric design and numerical simulation' HOMEPAGE="https://gs.jku.at/gismo" -SRC_URI="https://github.com/filiatra/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://timeraider4u.github.io/distfiles/files/${P}.tar.gz" LICENSE="MPL-2.0" SLOT="0" @@ -19,14 +19,11 @@ IUSE="doc examples" DEPEND=" doc? ( >=app-doc/doxygen-1.8 )" -src_prepare() { - epatch "${FILESDIR}/examples-CMakeLists.patch" - epatch "${FILESDIR}/doc-install.patch" -} - src_configure() { local mycmakeargs=( - $(cmake-utils_use examples GISMO_BUILD_EXAMPLES) + -DGISMO_BUILD_EXAMPLES=$(usex examples) + # set to same directory as the one used by einstalldocs + -DDOC_INSTALL_DIR="/usr/share/doc/${PF}" ) cmake-utils_src_configure } diff --git a/sci-mathematics/gismo/metadata.xml b/sci-mathematics/gismo/metadata.xml index d9e70962e..ce39098f1 100644 --- a/sci-mathematics/gismo/metadata.xml +++ b/sci-mathematics/gismo/metadata.xml @@ -5,4 +5,8 @@ <email>harald.weiner@jku.at</email> <name>Harald Weiner</name> </maintainer> + <use> + <flag name="doc">Build doxygen-documentation</flag> + <flag name="examples">Build examples</flag> + </use> </pkgmetadata> diff --git a/sci-misc/openfst/Manifest b/sci-misc/openfst/Manifest index 7312addb8..9896734a5 100644 --- a/sci-misc/openfst/Manifest +++ b/sci-misc/openfst/Manifest @@ -1,2 +1,3 @@ DIST openfst-1.3.4.tar.gz 769158 SHA256 e95fa96674e1c9d6866bbf79b9cd755c5121ad165b76224c7c6bbfa139399a61 SHA512 6ed87cbb949776b8702545a51d129e03f33428369b20255d637191e054ce04e529969aef49549b098b144cfde45cd9b741e6cba6680f815c04ad5717fdb0cbd9 WHIRLPOOL 593fd22668044f9ec8df70c274ee910f9da85a48fcd33c73993e54afd21298208d69804342b4e3a5d36e59aa92e853e84d95d1623c3708e7e1fc70e42916949f DIST openfst-1.4.1.tar.gz 824020 SHA256 e671bf6bd4425a1fed4e7543a024201b74869bfdd029bdf9d10c53a3c2818277 SHA512 8cb3b3e83155d1b2bd0075bab4fcf5d7160b427af87a2c03217a614a9dd1f9d7d1a67d404d897ad8659532686a7ad2fd20270de7cf838c6f38d4ae807369c51f WHIRLPOOL b9ae3562e2c7b2d651852d35e56ed7e678a990b46c7f720ac3a8e80cc7edee786bff3e1ab34aa6d5e9d33ec0821dbff8d6a5b6ea97c32ced40474891bfe4a4a3 +DIST openfst-1.6.1.tar.gz 1208654 SHA256 5245af8ebccb96208eec2dfe3b3a81143d3565a4d41220bff299287fb3333f7d SHA512 e75b706a825c3569271677226a47852744da20e1afc765d6a0f16b34a2e7af80b79b562a1c6bb3c17e1b819f8bd89958074cb671f3747deb31d8dccbb21abec2 WHIRLPOOL a2a0072d9535f9f2e548b359e06171f49016174c9679fc65df034c10813fd1e92c4824d1543fc6447034cdb193f8031e5dc48fcd1b0ca3403327b7a12269d63d diff --git a/sci-misc/openfst/openfst-1.6.1.ebuild b/sci-misc/openfst/openfst-1.6.1.ebuild new file mode 100644 index 000000000..4507b7e87 --- /dev/null +++ b/sci-misc/openfst/openfst-1.6.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="Finite State Transducer tools by Google et al" +HOMEPAGE="http://www.openfst.org" +SRC_URI="http://www.openfst.org/twiki/pub/FST/FstDownload/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_configure() { + local myeconfargs=( + --enable-compact-fsts + --enable-compress + --enable-const-fsts + --enable-far + --enable-linear-fsts + --enable-lookahead-fsts + --enable-mpdt + --enable-ngram-fsts + --enable-pdt + --enable-special + --enable-bin + --enable-grm + ) + econf ${myeconfargs[@]} +} diff --git a/sci-misc/sfst/Manifest b/sci-misc/sfst/Manifest index 4e69fd2b3..7ad3ea941 100644 --- a/sci-misc/sfst/Manifest +++ b/sci-misc/sfst/Manifest @@ -1,4 +1,5 @@ DIST SFST-1.4.2.tar.gz 490458 SHA256 0f3040f9e79faa7fee083d3344a87db533dfd84340b43eb86e79a208c70ad7be SHA512 9466d929e33141db7e2e19eb9dbcdf095a561677ba0e0ae9158a813a92ac3b389462a47a253fca5c61d14413c2559e0f1cfe3d3222f456836b5b5f93b33b42ea WHIRLPOOL e1aa43b8902812a75aa8d4ac598aa029cf38e23e52c9cc8c140eda03d5b514bcc5cc60f820b0eedd00d060b175aff74e05ce72c860337297553a228ab3b6425b DIST SFST-1.4.6g.tar.gz 486334 SHA256 53441e785be6d00b96021f455a7c6d4e40793afdade87f40be02305583a2b7a3 SHA512 8535ffd7b0a62dd27bc24d95d048afc7f56c81bfc3c989255a3d65b18a7be99c6b474a6ca0c196f7dc68eea4e4a5e1d744413252d909a9db2f0be843bb8fc518 WHIRLPOOL cd5a9756cb4bfb588cafa7bcb54a43e786af79befb68af574c7b578d51d4aefcd77be62bdc94b5fc5e35be401f5cbab1ea801aedb27f08fdc0addfcc680c9254 +DIST SFST-1.4.7d.tar.gz 666828 SHA256 5a13c6a45298197216a6299eb6cdf96595d2036572bb518b9e1c1893cb1a6d5f SHA512 905a606aa11c7d480d0714d195f864a73ed55637a81867bc1659e789367730be68e7d3f90a186330cb24ef7b0404b66ab58e9b8a1e78f4b6a185b07eddd6501b WHIRLPOOL 28bc79d20f9a93375cad2dd91e82e6e0813180c6963d7f1201a0cc0b6d4d6e81c4005cddb232ce85b7e9a483b97a1c28913e44310c7158b042a0f4019931ff5e DIST sfst.el 4752 SHA256 b47ff59f5ff24482dbbb2f1e71a8b9ca234c4154487f83eb2118f1a62bb9eb5f SHA512 88c808044919d49b7c647c16caffb0e67d6fae9ae948434247dbcef7d78168a7b67e7a5b64c5dbeb634f273d6b8ccb93d449af097a1418a6d48a7852f6ad9bbe WHIRLPOOL c8075858fde4c0986acdebab6e5935b1a8022065db09f722d0844d5a020414e8b19d3f321a6f1eeb96e4609643ed4dc62375d8c11be471b5d2e6b7212f6af273 DIST vim-mode.tar.gz 1104 SHA256 a62ba91c40da75be389a334db62cc2b4904bedfac657b185012b10f3f55dfe09 SHA512 8b808553dbf7a6d6aebb0d6382339bfbe56584effe0b1b0b9096969f81324305e4b66760188dc8fdfbb69118aa5688c66e2bd880dabb57b494068fd620ff540d WHIRLPOOL 252b7bd1110f3522caf0e2921550a52a552611227fd0da0029485f6eaf467ad476758deaee2774cf3c0e882d5dca63b82362e3e5a8fd378171286f7c1682fa77 diff --git a/sci-misc/sfst/sfst-1.4.7d.ebuild b/sci-misc/sfst/sfst-1.4.7d.ebuild new file mode 100644 index 000000000..c0210963f --- /dev/null +++ b/sci-misc/sfst/sfst-1.4.7d.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit elisp-common eutils + +MY_PN="SFST" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Uni Stuttgart Finite State Transducer tools" +HOMEPAGE="http://www.cis.uni-muenchen.de/~schmid/tools/SFST/" +SRC_URI=" + http://www.cis.uni-muenchen.de/~schmid/tools/${MY_PN}/data/${MY_P}.tar.gz + vim-syntax? ( http://www.cis.uni-muenchen.de/~schmid/tools/${MY_PN}/data/vim-mode.tar.gz ) + emacs? ( http://www.cis.uni-muenchen.de/~wastl/emacs/sfst.el )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="emacs vim-syntax" + +RDEPEND=" + sys-libs/readline:0= + emacs? ( virtual/emacs )" +DEPEND="${RDEPEND} + sys-devel/bison + sys-devel/flex" + +S="${WORKDIR}/${MY_PN}" + +src_prepare() { + # settings in makefile are a bit hacky + sed \ + -e "s/^CFLAGS = -O3/CFLAGS = ${CFLAGS}/g" \ + -e "s/local//g" \ + -e 's/strip/echo strip removed: /g' \ + -e 's/# FPIC/FPIC/' \ + -e 's/ $(PREFIX/ $(DESTDIR)$(PREFIX/g' \ + -e 's/ldconfig/true/' \ + -e 's/$(INSTALL_LIBS)/$(INSTALL_DIR) $(DESTDIR)$(PREFIX)\/lib\n\t\0/' \ + -i "${S}"/src/Makefile || die "sed failed" + cd "${S}" || die + if use emacs ; then + cp "${DISTDIR}/sfst.el" "${S}" || die + fi + if use vim-syntax ; then + mv "${WORKDIR}"/INSTALL "${S}"/INSTALL-vim-syntax || die + mv "${WORKDIR}"/sfst.vim "${S}"/ || die + fi + + eapply_user +} + +src_compile() { + emake -C "${S}/src" + if use emacs ; then + cd "${S}" || die + elisp-compile *.el || die "could not compile elisp" + fi +} + +src_install() { + cd "${S}/src" || die + # destdir works but prefix fails + emake DESTDIR="${D}" install maninstall libinstall + cd "${S}" || die + dodoc README + insinto /usr/share/doc/${PF}/ + doins doc/SFST-Manual.pdf doc/SFST-Tutorial.pdf + insinto /usr/share/${PN} + doins -r data/* + if use vim-syntax ; then + insinto /usr/share/vim/vimfiles/syntax/ + doins sfst.vim + insinto /usr/share/vim/vimfiles/ftdetect/ + newins "${FILESDIR}"/ftdetect-sfst.vim sfst.vim + dodoc INSTALL-vim-syntax + fi + if use emacs ; then + elisp-install ${PN} *.el *.elc + fi +} |