mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
sdsl-lite: add version 2.3.1
This commit is contained in:
parent
606a8be0d7
commit
c7f52182eb
10 changed files with 219 additions and 0 deletions
13
BioArchLinux/nodejs-d3/LICENSE
Normal file
13
BioArchLinux/nodejs-d3/LICENSE
Normal file
|
@ -0,0 +1,13 @@
|
|||
Copyright 2010-2023 Mike Bostock
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose
|
||||
with or without fee is hereby granted, provided that the above copyright notice
|
||||
and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
||||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
THIS SOFTWARE.
|
29
BioArchLinux/nodejs-d3/PKGBUILD
Normal file
29
BioArchLinux/nodejs-d3/PKGBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Maintainer: Filipe Bertelli <filipebertelli@tutanota.com>
|
||||
# Contributor: Bipin Kumar <kbipinkumar@pm.me>
|
||||
|
||||
_pkgbase=d3
|
||||
pkgname=nodejs-$_pkgbase
|
||||
pkgdesc='Bring data to life with SVG, Canvas and HTML'
|
||||
pkgver=7.8.4
|
||||
pkgrel=1
|
||||
arch=('any')
|
||||
url='https://github.com/d3/d3'
|
||||
license=('ISC')
|
||||
depends=('nodejs' 'bash')
|
||||
makedepends=('npm')
|
||||
source=("http://registry.npmjs.org/$_pkgbase/-/$_pkgbase-$pkgver.tgz"
|
||||
'LICENSE')
|
||||
sha512sums=('ab65874ad761881b43f033268433f22665d4c6be955919e02b2889e447d73313f0fada93e8184d8e1259e30dc11ec366dd0a157d92d8f0eaeafea3c5733c0a44'
|
||||
'4f26a005ba15bf0dd1b9087992a21cfcccb1c21de872df42d98dbb81542ed0c14bf7f04b80554169efc5ec689ee7da89402dfd3031482238b1ef9cda6ec1b070')
|
||||
noextract=($_pkgbase-$pkgver.tgz)
|
||||
|
||||
package() {
|
||||
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$_pkgbase-$pkgver.tgz
|
||||
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
rm -fr "$pkgdir"/usr/etc
|
||||
chown -R root:root "${pkgdir}"
|
||||
|
||||
# Fix npm derp
|
||||
find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
|
||||
}
|
||||
|
15
BioArchLinux/nodejs-d3/lilac.yaml
Normal file
15
BioArchLinux/nodejs-d3/lilac.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: kbipinkumar
|
||||
email: kbipinkumar@pm.me
|
||||
pre_build_script: |
|
||||
update_pkgver_and_pkgrel(_G.newver.lstrip('v'))
|
||||
run_cmd(['updpkgsums'])
|
||||
post_build_script: |
|
||||
git_pkgbuild_commit()
|
||||
update_on:
|
||||
- source: github
|
||||
github: d3/d3
|
||||
use_max_tag: true
|
||||
prefix: 'v'
|
||||
|
30
BioArchLinux/sdsl-lite/CMakeLists.patch
Normal file
30
BioArchLinux/sdsl-lite/CMakeLists.patch
Normal file
|
@ -0,0 +1,30 @@
|
|||
--- a/CMakeLists.txt 2023-05-27 20:49:20.443054336 +0530
|
||||
+++ b/CMakeLists.txt 2023-05-27 20:54:26.158151939 +0530
|
||||
@@ -79,18 +79,7 @@
|
||||
endif()
|
||||
endif()
|
||||
|
||||
-include(CheckSSE4_2)
|
||||
-if( BUILTIN_POPCNT )
|
||||
- if( CMAKE_COMPILER_IS_GNUCXX )
|
||||
- append_cxx_compiler_flags("-msse4.2 -march=native" "GCC" CMAKE_CXX_OPT_FLAGS)
|
||||
- endif()
|
||||
- if( CMAKE_COMPILER_IS_GNUCXX )
|
||||
- append_cxx_compiler_flags("-msse4.2 -march=native" "CLANG" CMAKE_CXX_OPT_FLAGS)
|
||||
- endif()
|
||||
- if( CMAKE_COMPILER_IS_INTEL )
|
||||
- append_cxx_compiler_flags("-msse4.2 -march=native" "INTEL" CMAKE_CXX_FLAGS)
|
||||
- endif()
|
||||
-endif()
|
||||
+include(GNUInstallDirs)
|
||||
|
||||
# check for demangle support to get pretty C++ class names
|
||||
include(FindCxaDemangle)
|
||||
@@ -115,7 +104,6 @@
|
||||
message(WARNING "git not found. Cloning of submodules will not work.")
|
||||
endif()
|
||||
|
||||
-add_subdirectory(external)
|
||||
add_subdirectory(include)
|
||||
add_subdirectory(lib)
|
||||
|
60
BioArchLinux/sdsl-lite/PKGBUILD
Normal file
60
BioArchLinux/sdsl-lite/PKGBUILD
Normal file
|
@ -0,0 +1,60 @@
|
|||
# Maintainer: Bipin Kumar <kbipinkumar@pm.me>
|
||||
# Contributor: alienzj <lovelornpig@gmail.com>
|
||||
|
||||
pkgname=sdsl-lite
|
||||
_packager=vgteam
|
||||
pkgver=2.3.1
|
||||
pkgrel=1
|
||||
pkgdesc="Succinct Data Structure Library"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://github.com/vgteam/sdsl-lite"
|
||||
license=('GPL')
|
||||
depends=(
|
||||
'libdivsufsort'
|
||||
'nodejs-d3'
|
||||
'glibc'
|
||||
'gcc-libs'
|
||||
)
|
||||
makedepends=('cmake' 'quilt' 'doxygen')
|
||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/vgteam/sdsl-lite/archive/refs/tags/v${pkgver}-vgteam.tar.gz"
|
||||
'CMakeLists.patch'
|
||||
'sdsl.CMakeLists.patch'
|
||||
'lib.CMakeLists.patch'
|
||||
'use_packaged_d3.patch'
|
||||
'series'
|
||||
)
|
||||
|
||||
sha256sums=('1c41164a3c59ee3061e0b96cbc30dd43c55d45a03124ab4eac68bacd85c0a2c4'
|
||||
'20aa5f3270afc1a0fa3bc65fdfa044927a6501e4e10e49341cf3cb1ed2103680'
|
||||
'f7fa43df06965e9979e182c8a2784cf8efa288563ab794459a952a2614d606db'
|
||||
'363104f6a8f908d0ba1cbbe7f0cd66d4134f54e08e661aef936745341fcef98a'
|
||||
'b2707f3256e886cffb29ed67e54f9b8d9c8a0882617b377d07b011a2ff043b74'
|
||||
'ffa04f5862ec24eed43d5b39f4f5f793420b0e0587e3847de5351e656c376c0b')
|
||||
|
||||
|
||||
prepare() {
|
||||
mkdir -p "$pkgname-$pkgver-${_packager}"/patches
|
||||
cp *.patch "$pkgname-$pkgver-${_packager}"/patches
|
||||
cp series "$pkgname-$pkgver-${_packager}"/patches
|
||||
cd "$pkgname-$pkgver-${_packager}"
|
||||
if [[ -d build ]]; then
|
||||
rm -rf build
|
||||
fi
|
||||
quilt push -a
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
cmake -B build -S "$pkgname-$pkgver-${_packager}" \
|
||||
-DCMAKE_BUILD_TYPE='None' \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-DBUILD_DIVSUFSORT64='OFF' \
|
||||
-Wno-dev
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
|
||||
}
|
26
BioArchLinux/sdsl-lite/lib.CMakeLists.patch
Normal file
26
BioArchLinux/sdsl-lite/lib.CMakeLists.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
--- a/lib/CMakeLists.txt 2023-05-27 21:06:55.542350897 +0530
|
||||
+++ b/lib/CMakeLists.txt 2023-05-27 21:09:37.299330628 +0530
|
||||
@@ -1,6 +1,5 @@
|
||||
include_directories(#"${CMAKE_CURRENT_SOURCE_DIR}/../include"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/../include"
|
||||
- "${CMAKE_CURRENT_BINARY_DIR}/../external/libdivsufsort/include"
|
||||
)
|
||||
|
||||
|
||||
@@ -11,12 +10,13 @@
|
||||
|
||||
set( sdsl_SRCS ${libFiles} ${headerFiles})
|
||||
|
||||
-add_library( sdsl ${sdsl_SRCS} )
|
||||
+add_library( sdsl_static ${sdsl_SRCS} )
|
||||
+add_library( sdsl SHARED ${sdsl_SRCS} )
|
||||
|
||||
install(TARGETS sdsl
|
||||
RUNTIME DESTINATION bin
|
||||
- LIBRARY DESTINATION lib
|
||||
- ARCHIVE DESTINATION lib)
|
||||
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
||||
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
||||
|
||||
math(EXPR SOVERSION "${LIBRARY_VERSION_MAJOR}+1")
|
||||
|
17
BioArchLinux/sdsl-lite/lilac.yaml
Normal file
17
BioArchLinux/sdsl-lite/lilac.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: kbipinkumar
|
||||
email: kbipinkumar@pm.me
|
||||
pre_build_script: |
|
||||
update_pkgver_and_pkgrel(_G.newver.removeprefix('v').removesuffix(-vgteam))
|
||||
run_cmd(['updpkgsums'])
|
||||
post_build_script: |
|
||||
git_pkgbuild_commit()
|
||||
repo_depends:
|
||||
- nodejs-d3
|
||||
- libdivsufsort
|
||||
update_on:
|
||||
- source: github
|
||||
github: vgteam/sdsl-lite
|
||||
use_latest_release: true
|
||||
prefix: 'v'
|
11
BioArchLinux/sdsl-lite/sdsl.CMakeLists.patch
Normal file
11
BioArchLinux/sdsl-lite/sdsl.CMakeLists.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/include/sdsl/CMakeLists.txt 2023-05-27 21:01:34.624907551 +0530
|
||||
+++ b/include/sdsl/CMakeLists.txt 2023-05-27 21:03:45.869781987 +0530
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
foreach(hppFile ${hppFiles}) # copy each file
|
||||
configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/${hppFile}" "${CMAKE_CURRENT_BINARY_DIR}/${hppFile}" COPYONLY )
|
||||
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${hppFile}" DESTINATION include/sdsl)
|
||||
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${hppFile}" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/sdsl")
|
||||
# MESSAGE(${hppFile})
|
||||
endforeach(hppFile)
|
||||
|
5
BioArchLinux/sdsl-lite/series
Normal file
5
BioArchLinux/sdsl-lite/series
Normal file
|
@ -0,0 +1,5 @@
|
|||
CMakeLists.patch
|
||||
sdsl.CMakeLists.patch
|
||||
lib.CMakeLists.patch
|
||||
use_packaged_d3.patch
|
||||
|
13
BioArchLinux/sdsl-lite/use_packaged_d3.patch
Normal file
13
BioArchLinux/sdsl-lite/use_packaged_d3.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
Description: Use d3.min.js from nodejs-d3
|
||||
|
||||
--- a/lib/structure_tree.cpp.cmake 2023-05-27 21:06:55.545684100 +0530
|
||||
+++ b/lib/structure_tree.cpp.cmake 2023-05-27 21:14:52.420258448 +0530
|
||||
@@ -45,7 +45,7 @@
|
||||
<< " <head>\n"
|
||||
<< " <meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\">\n"
|
||||
<< " <title>" << file_name << "</title>\n"
|
||||
- << " <script src=\"file://@PROJECT_SOURCE_DIR@/external/d3/d3.min.js\"></script>"
|
||||
+ << " <script src=\"file:///usr/lib/node_modules/d3/dist/d3.min.js\"></script>"
|
||||
<< " <script src=\"http://d3js.org/d3.v2.js\"></script>\n"
|
||||
<< " <style type=\"text/css\">\n"
|
||||
<< " path { stroke: #000; stroke-width: 0.8; cursor: pointer; }\n"
|
Loading…
Add table
Reference in a new issue