pystring new package
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env 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 cmaketools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
shelltools.makedirs("build")
|
||||
shelltools.cd("build")
|
||||
cmaketools.configure(sourceDir="..")
|
||||
|
||||
def build():
|
||||
shelltools.cd("build")
|
||||
cmaketools.make()
|
||||
|
||||
def install():
|
||||
shelltools.cd("build")
|
||||
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
shelltools.cd("..")
|
||||
pisitools.dodoc("README*")
|
||||
@@ -0,0 +1,31 @@
|
||||
project(pystring
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "-O3 -Wall -Wextra -Wshadow -Wconversion -Wcast-qual -Wformat=2 ${CMAKE_CXX_FLAGS}")
|
||||
|
||||
include(GNUInstallDirs)
|
||||
mark_as_advanced(CLEAR CMAKE_INSTALL_LIBDIR
|
||||
CMAKE_INSTALL_INCLUDEDIR
|
||||
)
|
||||
|
||||
add_library(pystring SHARED
|
||||
pystring.cpp
|
||||
)
|
||||
|
||||
set_target_properties(pystring PROPERTIES
|
||||
SOVERSION 0.0
|
||||
)
|
||||
|
||||
install(TARGETS pystring
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
)
|
||||
|
||||
install(FILES pystring.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/pystring
|
||||
)
|
||||
|
||||
add_executable(test pystring.cpp test.cpp)
|
||||
target_compile_definitions(test PRIVATE PYSTRING_UNITTEST=1)
|
||||
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>pystring</Name>
|
||||
<Homepage>https://github.com/imageworks/pystring</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Pystring is a collection of C++ functions which match the interface and behavior of python</Summary>
|
||||
<Description>Pystring, python'un arayüzü ve davranışıyla eşleşen bir C++ işlevleri topluluğudur.</Description>
|
||||
<Archive sha1sum="605d47c5027c91c808540b3572b5087426dba20f" type="zip">https://github.com/imageworks/pystring/archive/refs/heads/master.zip</Archive>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile target="CMakeLists.txt">fedora/CMakeLists.txt</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<BuildDependencies>
|
||||
<Dependency>cmake</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>pystring</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libgcc</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>pystring-devel</Name>
|
||||
<Summary>Development files for pystring</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">pystring</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2021-06-30</Date>
|
||||
<Version>1.1.3</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>pystring</Name>
|
||||
<Summary xml:lang="tr">Pystring is a collection of C++ functions which match the interface and behavior of python</Summary>
|
||||
<Description xml:lang="tr">Pystring, python'un arayüzü ve davranışıyla eşleşen bir C++ işlevleri topluluğudur.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user