diff options
Diffstat (limited to 'dev-libs/sord')
-rw-r--r-- | dev-libs/sord/Manifest | 5 | ||||
-rw-r--r-- | dev-libs/sord/files/sord-0.16.6-x86_32.patch | 44 | ||||
-rw-r--r-- | dev-libs/sord/sord-0.16.6.ebuild | 61 | ||||
-rw-r--r-- | dev-libs/sord/sord-9999.ebuild | 6 |
4 files changed, 114 insertions, 2 deletions
diff --git a/dev-libs/sord/Manifest b/dev-libs/sord/Manifest index 039718164af4..b57b5aeac93c 100644 --- a/dev-libs/sord/Manifest +++ b/dev-libs/sord/Manifest @@ -1,5 +1,8 @@ +AUX sord-0.16.6-x86_32.patch 1292 BLAKE2B 0177c404d77cbc27a79a31b21c6c7e51015aba6c912bc2e3ed660f1d9516cf6afe8f52fd2f2bcf4028addc340f441cf9c1a61d412b10bd5e696ccb10902db33f SHA512 c851bd761eb1c77177c5333208f74b577a36a8e5b0ea0b2dc704c30d1e984c28df7003208ba629981a395b5e893b94289210f6c6273f51551d595276353cc1bf DIST drobilla-autowaf-6c6c1d29bfe4c28dd26b5cde7ea4a1a148ee700d.tar.gz 384589 BLAKE2B d643df2e133c2b70e00d85562d1c30f8a01190b4c1e1a512b732d016db3ae77ff543d4acafc00309edb173e7bbaaf17b0c2844bef2ffe786c02a51930f03f29a SHA512 50b2d063866630c7c566af9da07c9ac0da2cf86e70f76ad6af57973ae0b346d4687c0b4263cefa90f0c0ba9e853a60583457c9f8b1313db3f4298ca2f0cfc4d3 +DIST sord-0.16.6.tar.bz2 520690 BLAKE2B 7ec248a78e0d9e525d640363414ddd32acc3e32817e2ab86e791fd9232a46658538c9a4db936a5daa7eeb5ef9f7bf13e1aa1429ab6d9fc769e1391a014da919f SHA512 1d3c2bf47ff7e4b533e4e737e2ece8e29bace78bb00c41a252ad5c583abdcba3baa05b189cb8651c212861a2eea3c690354c99d684fd0f343b40e74c94572f98 DIST sord-81e138633076c2d7ef7e1691845757208d02f478.tar.gz 293332 BLAKE2B 794aed020b14f0cd4bae851de12f24fe54c87202b69c3f21cc26a86f0da092b05ea2244279be16ab3231431a8a5fb0cbab7236c2e761715e9a1759bb5b3ab54b SHA512 ba0dd8a8434a04be3548b959789b5b81491cd2f91f6125d3620fa17d4d38ae18015db7cd72af71900a0a17331c6b5400756719a25e09e596590ff943798a5991 EBUILD sord-0.16.4_p20200803.ebuild 1584 BLAKE2B 4c4c075c41f094bbc70054c63d423d9d0574c5fb103f1a45f3e5180e4ac1ab4cb67cbb801524dc10022ab58616c636d519c9035b4a62091769aae23b1ca00939 SHA512 1a28340237a91a4ed316b216b925459005eaccda7863e132682740d32916f5e4e2c0b77caa5f6fe3ac94d827a22fdf8ff9e2db5483b08f9ffa933d447ce9ae6e -EBUILD sord-9999.ebuild 1125 BLAKE2B 39b455cafddea954aefad917eb782504eaa38f5cf5a07abdd56d5b0dc06227464c0d3dd3c2e64519cad415d6278ac4f0cf16b48ba7023b5df759dc3d39522952 SHA512 11739648e64dbdb746d2774a2632a9fd54b36af4ec147b71166ad006ef438b62618a588b9a69ac5e08b152d2644783f49773ec314da2fd4664d508e9489e2cc0 +EBUILD sord-0.16.6.ebuild 1215 BLAKE2B 114775f3ed2e81a94e05049a5a5015252aa7c4aa28b7909a5e6a9c29eab8cc21de9acf40a9cd1616fdf099b1dd4f4a15ece3fad01380d9c36d66194884dd65bd SHA512 36bdfe99b243f3178ebd207100d47b78fb701ed6dab610d6764e40c608826030f572e4851f097dad190dbc629599c74b9cc1b23d5322996c8df402d6945a4efd +EBUILD sord-9999.ebuild 1169 BLAKE2B e814b98d57f0c12b816134b113417f4fb09923c56a275cd54086f54529242335cd3df8a8d7bb8ecb458f530c83ec2dd55bb10fd38483baa91773e6bb16d498d2 SHA512 4a88c8475943eb0bf4a487124c1cac7c891c3ffa53bf460656e170db13e9b55ab87a672a62d16833eb89c957718ca739ea6c12f1dc5c6e07315ee7231342d02b MISC metadata.xml 255 BLAKE2B 7a492321189530430d5c71d5598f8a99b548e020d8ace46bb200f1f18abb3a59c4d0dff84c8dc1f78297137c25684d42386d793b84a02e2363fab4d6dcedd4fa SHA512 9e74b875aa129f5b8108121402291772fde4ac18a157dc60f7b3e19c318ee54cd1be54e283a68bc61562f2dc3f5b338b161028d673ff7baa267192ff3b7e8dc8 diff --git a/dev-libs/sord/files/sord-0.16.6-x86_32.patch b/dev-libs/sord/files/sord-0.16.6-x86_32.patch new file mode 100644 index 000000000000..3effc4d44dc3 --- /dev/null +++ b/dev-libs/sord/files/sord-0.16.6-x86_32.patch @@ -0,0 +1,44 @@ +diff --git a/src/zix/digest.c b/src/zix/digest.c +index 889cfde..00b9fcf 100644 +--- a/src/zix/digest.c ++++ b/src/zix/digest.c +@@ -38,10 +38,12 @@ zix_digest_add(uint32_t hash, const void* const buf, const size_t len) + { + const uint8_t* str = (const uint8_t*)buf; + ++#ifdef __x86_64__ + for (size_t i = 0; i < (len / sizeof(uint64_t)); ++i) { + hash = (uint32_t)_mm_crc32_u64(hash, *(const uint64_t*)str); + str += sizeof(uint64_t); + } ++#endif + if (len & sizeof(uint32_t)) { + hash = _mm_crc32_u32(hash, *(const uint32_t*)str); + str += sizeof(uint32_t); +@@ -57,6 +59,7 @@ zix_digest_add(uint32_t hash, const void* const buf, const size_t len) + return hash; + } + ++#ifdef __x86_64__ + ZIX_API uint32_t + zix_digest_add_64(uint32_t hash, const void* const buf, const size_t len) + { +@@ -72,12 +75,17 @@ zix_digest_add_64(uint32_t hash, const void* const buf, const size_t len) + + return hash; + } ++#endif + + ZIX_API uint32_t + zix_digest_add_ptr(const uint32_t hash, const void* const ptr) + { + #if UINTPTR_MAX == UINT64_MAX +- return (uint32_t)_mm_crc32_u64(hash, (uintptr_t)ptr); ++ #ifdef __x86_64__ ++ return (uint32_t)_mm_crc32_u64(hash, (uintptr_t)ptr); ++ #else ++ return (uint32_t)_mm_crc32_u32(hash, (uintptr_t)ptr); ++ #endif + #else + return _mm_crc32_u32(hash, (uintptr_t)ptr); + #endif diff --git a/dev-libs/sord/sord-0.16.6.ebuild b/dev-libs/sord/sord-0.16.6.ebuild new file mode 100644 index 000000000000..bd3d4f728ec6 --- /dev/null +++ b/dev-libs/sord/sord-0.16.6.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_REQ_USE='threads(+)' +inherit python-any-r1 waf-utils multilib-build multilib-minimal + +DESCRIPTION="Library for storing RDF data in memory" +HOMEPAGE="http://drobilla.net/software/sord/" +SRC_URI="http://download.drobilla.net/${P}.tar.bz2" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc static-libs test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/libpcre + dev-libs/serd +" +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + doc? ( app-doc/doxygen ) + virtual/pkgconfig" + +DOCS=( "AUTHORS" "NEWS" "README.md" ) + +PATCHES=( + "${FILESDIR}/${P}-x86_32.patch" +) + +src_prepare() { + sed -i -e 's/^.*run_ldconfig/#\0/' wscript || die + default + multilib_copy_sources +} + +multilib_src_configure() { + waf-utils_src_configure \ + --docdir=/usr/share/doc/${PF} \ + $(multilib_native_usex doc --docs "") \ + $(usex test --test "") \ + $(usex static-libs --static "") +} + +multilib_src_test() { + ./waf test || die +} + +multilib_src_compile() { + waf-utils_src_compile + default +} + +multilib_src_install() { + waf-utils_src_install + default +} diff --git a/dev-libs/sord/sord-9999.ebuild b/dev-libs/sord/sord-9999.ebuild index e1388ab2877c..acfd96a2744a 100644 --- a/dev-libs/sord/sord-9999.ebuild +++ b/dev-libs/sord/sord-9999.ebuild @@ -19,7 +19,7 @@ RESTRICT="!test? ( test )" RDEPEND=" dev-libs/libpcre - >=dev-libs/serd-0.30.0 + dev-libs/serd " DEPEND="${RDEPEND} ${PYTHON_DEPS} @@ -28,6 +28,10 @@ DEPEND="${RDEPEND} DOCS=( "AUTHORS" "NEWS" "README.md" ) +PATCHES=( + "${FILESDIR}/${P}-0.16.6-x86_32.patch" +) + src_prepare() { sed -i -e 's/^.*run_ldconfig/#\0/' wscript || die default |