new package:nlohmann-json
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import cmaketools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
shelltools.makedirs("build")
|
||||
shelltools.cd("build")
|
||||
|
||||
cmaketools.configure("-DCMAKE_BUILD_TYPE='None' \
|
||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
||||
-DCMAKE_INSTALL_LIBDIR='/usr/lib' \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DBUILD_STATIC_LIBS=OFF \
|
||||
-DBUILD_TESTING=ON \
|
||||
-DJSON_BuildTests=ON \
|
||||
-DJSON_MultipleHeaders=ON \
|
||||
-Wno-dev", sourceDir="..")
|
||||
|
||||
def build():
|
||||
cmaketools.make("-B build")
|
||||
|
||||
|
||||
def install():
|
||||
shelltools.cd("build")
|
||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.domove("/usr/share/pkgconfig", "/usr/lib")
|
||||
|
||||
# pisitools.dodoc("./LICENSES")
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>nlohmann-json</Name>
|
||||
<Homepage>https://json.nlohmann.me</Homepage>
|
||||
<Packager>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvari@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>MIT</License>
|
||||
<Icon>nlohmann-json</Icon>
|
||||
<Summary>JSON for Modern C++</Summary>
|
||||
<Description>JSON for Modern C++</Description>
|
||||
<Archive sha1sum="a6090d28a631b72f416b83166425a2f09c6c91d8" type="targz">https://github.com/nlohmann/json/archive/5d2754306d67d1e654a1a34e1d2e74439a9d53b3/v3.11.2.tar.gz</Archive>
|
||||
<Archive sha1sum="139e4f927cc7b1998c025d60a9a63a3a6f1929f6" type="binary" target="json-5d2754306d67d1e654a1a34e1d2e74439a9d53b3">https://github.com/nlohmann/json_test_data/archive/refs/tags/v3.1.0.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>git</Dependency>
|
||||
<Dependency>cmake</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- <Patch></Patch> -->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>nlohmann-json</Name>
|
||||
<RuntimeDependencies>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="data">/usr/share/cmake</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2023-06-21</Date>
|
||||
<Version>3.11.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvari@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>nlohmann-json</Name>
|
||||
<Summary xml:lang="tr">Modern C++ için JSON</Summary>
|
||||
<Description xml:lang="tr">CModern C++ için JSON</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user