Skip to content

Commit

Permalink
libmtwist-0.0.0+git20230911 (untested)
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Dec 19, 2024
1 parent 2061e65 commit e910175
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 53 deletions.
34 changes: 18 additions & 16 deletions libmtwist/README
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ This library provides a public domain C library that implements the Mersenne
Twister pseudo random number generator.

Runtime requirements:
cygwin-2.0.2-1
libmtwist-devel-0.0.0+git20140113-1bl1
libmtwist0-0.0.0+git20140113-1bl1
cygwin-3.5.4-1
libmtwist-devel-0.0.0+git20230911-1bl1
libmtwist0-0.0.0+git20230911-1bl1
pkg-config-2.3.0-1

Build requirements:
(besides corresponding -devel packages)
automake-9-1
binutils-2.25-1
cmake-3.1.2-1
cygport-0.18.1-1
gcc-core-4.9.2-3
make-4.1-1
binutils-2.43.1-1
cmake-3.28.3-1
cygport-0.36.9-1
gcc-core-12.4.0-3
ninja-1.12.0-1

Canonical website:
https://github.com/dajobe/libmtwist
Expand All @@ -26,17 +26,17 @@ Canonical download:
-------------------------------------------

Build instructions:
1. unpack libmtwist-0.0.0+git20140113-X-src.tar.xz
1. unpack libmtwist-0.0.0+git20230911-X-src.tar.xz
2. if you use setup to install this src package,
it will be unpacked under /usr/src automatically
% cd /usr/src
% cygport ./libmtwist-0.0.0+git20140113-X.cygport all
% cygport ./libmtwist-0.0.0+git20230911-X.cygport all

This will create:
/usr/src/libmtwist-0.0.0+git20140113-X-src.tar.xz
/usr/src/libmtwist-0.0.0+git20140113-X.tar.xz
/usr/src/libmtwist0-0.0.0+git20140113-X.tar.xz
/usr/src/libmtwist-devel-0.0.0+git20140113-X.tar.xz
/usr/src/libmtwist-0.0.0+git20230911-X-src.tar.xz
/usr/src/libmtwist-0.0.0+git20230911-X.tar.xz
/usr/src/libmtwist0-0.0.0+git20230911-X.tar.xz
/usr/src/libmtwist-devel-0.0.0+git20230911-X.tar.xz

-------------------------------------------

Expand All @@ -59,9 +59,11 @@ Files included in the binary package:

Port Notes:

----- version 0.0.0+git20230911-1bl1 -----
Version bump.

----- version 0.0.0+git20140113-1bl1 -----
Version bump.

----- version 0.0.0+git20131116-1bl1 -----
Initial release by fd0 <https://github.com/fd00/>

35 changes: 0 additions & 35 deletions libmtwist/libmtwist-0.0.0+git20140113-1bl1.src.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
HOMEPAGE="https://github.com/dajobe/${PN}"
GIT_URI="https://github.com/dajobe/${PN}.git"
GIT_REV="9f4b45b0a5c44a630fc525410ed3eb29de0bda93"

CATEGORY="Math"
SUMMARY="Mersenne Twister Library"
DESCRIPTION="This library provides a public domain C library that implements the Mersenne
Twister pseudo random number generator."

LICENSE="Unlicense"
LICENSE_SPDX="SPDX-License-Identifier: Unlicense"
LICENSE_URI="UNLICENSE"

inherit cmake
inherit git

Expand All @@ -26,13 +31,12 @@ libmtwist_CONTENTS="
usr/share
"
libmtwist0_CONTENTS="
usr/bin
usr/bin/cyg*-0.dll
"
libmtwist_devel_CONTENTS="
usr/include
usr/lib
"

libmtwist_SUMMARY="${SUMMARY} (licensing & readmes)"
libmtwist0_SUMMARY="${SUMMARY} (runtime)"
libmtwist_devel_SUMMARY="${SUMMARY} (development)"
34 changes: 34 additions & 0 deletions libmtwist/libmtwist-0.0.0+git20230911-1bl1.src.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
--- origsrc/libmtwist/CMakeLists.txt 2024-12-19 14:11:44.000000000 +0900
+++ src/libmtwist/CMakeLists.txt 2024-12-19 14:14:01.474770900 +0900
@@ -81,9 +81,15 @@ INSTALL (FILES mtwist.h
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)

INSTALL (TARGETS mtwist
- DESTINATION lib
+ RUNTIME DESTINATION bin
+ ARCHIVE DESTINATION lib
PERMISSIONS OWNER_READ GROUP_READ WORLD_READ)

+get_target_property(VERSION mtwist VERSION)

-# Packaging
-# Nothing yet
+set(prefix ${CMAKE_INSTALL_PREFIX})
+set(exec_prefix ${CMAKE_INSTALL_PREFIX})
+set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
+set(includedir ${CMAKE_INSTALL_PREFIX}/include)
+configure_file(${CMAKE_SOURCE_DIR}/libmtwist.pc.in ${CMAKE_BINARY_DIR}/libmtwist.pc @ONLY)
+install(FILES ${CMAKE_BINARY_DIR}/libmtwist.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
--- origsrc/libmtwist/libmtwist.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/libmtwist/libmtwist.pc.in 2024-12-19 14:13:34.345016400 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libmtwist
+Description: Mersenne Twister Library
+Version: @VERSION@
+Libs: -L${libdir} -lmtwist
+Cflags: -I${includedir}

0 comments on commit e910175

Please sign in to comment.