Skip to content

Commit

Permalink
liboauthcpp-0+git20181121
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Jan 25, 2025
1 parent 609ebd5 commit acb71b9
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 33 deletions.
41 changes: 23 additions & 18 deletions liboauthcpp/README
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ infrastructure for making HTTP requests and are looking to add OAuth support,
liboauthcpp is for you.

Runtime requirements:
cygwin-2.9.0-3
libgcc1-6.4.0-1
liboauthcpp-devel-0+git20170605-1bl1
liboauthcpp0-0+git20170605-1bl1
libstdc++6-6.4.0-1
pkg-config-0.29.1-1
cygwin-3.5.4-1
libgcc1-12.4.0-3
liboauthcpp-devel-0+git20181121-1bl1
liboauthcpp0-0+git20181121-1bl1
libstdc++6-12.4.0-3
pkg-config-2.3.0-1

Build requirements:
(besides corresponding -devel packages)
binutils-2.28-3
cmake-3.6.2-1
cygport-0.24.1-1
gcc-core-6.4.0-1
gcc-g++-6.4.0-1
make-4.2.1-2
binutils-2.43.1-1
cmake-3.28.3-1
cygport-0.36.9-1
gcc-core-12.4.0-3
gcc-g++-12.4.0-3
ninja-1.12.1-1

Canonical website:
https://github.com/sirikata/liboauthcpp
Expand All @@ -33,23 +33,25 @@ Canonical download:
-------------------------------------------

Build instructions:
1. unpack liboauthcpp-0+git20170605-X-src.tar.xz
1. unpack liboauthcpp-0+git20181121-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 ./liboauthcpp-0+git20170605-X.cygport all
% cygport ./liboauthcpp-0+git20181121-X.cygport all

This will create:
/usr/src/liboauthcpp-0+git20170605-X-src.tar.xz
/usr/src/liboauthcpp-0+git20170605-X.tar.xz
/usr/src/liboauthcpp0-0+git20170605-X.tar.xz
/usr/src/liboauthcpp-devel-0+git20170605-X.tar.xz
/usr/src/liboauthcpp-0+git20181121-X-src.tar.xz
/usr/src/liboauthcpp-0+git20181121-X.tar.xz
/usr/src/liboauthcpp0-0+git20181121-X.tar.xz
/usr/src/liboauthcpp-devel-0+git20181121-X.tar.xz

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

Files included in the binary package:

(liboauthcpp)
/usr/bin/oauthcpp_simple_auth.exe
/usr/bin/oauthcpp_simple_request.exe
/usr/share/doc/Cygwin/liboauthcpp.README
/usr/share/doc/liboauthcpp/LICENSE
/usr/share/doc/liboauthcpp/README.md
Expand All @@ -66,6 +68,9 @@ Files included in the binary package:

Port Notes:

----- version 0+git20181121-1bl1 -----
Version bump.

----- version 0+git20170605-1bl1 -----
Version bump.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
HOMEPAGE="https://github.com/sirikata/${PN}"
GIT_URI="https://github.com/sirikata/${PN}.git"
GIT_REV="2893f1bf42e1dfd5acf0dd849519cf27ac9c7395"

CATEGORY="Libs"
SUMMARY="Pure C++ OAuth library"
Expand All @@ -10,26 +11,51 @@ functionality and providing a nice interface for it. If you already have
infrastructure for making HTTP requests and are looking to add OAuth support,
liboauthcpp is for you."

LICENSE="MIT"
LICENSE_SPDX="SPDX-License-Identifier: MIT"
LICENSE_URI="LICENSE"

CYGCMAKE_SOURCE="${top}/${PF}.${ARCH}/src/${PN}/build"

inherit cmake
inherit git

CYGCMAKE_ARGS="
-DSOVERSION:STRING=0
-DVERSION:STRING=0
"

src_test()
{
cd ${B}
ninja_test
}

src_install()
{
cd ${B}
ninja_install

newbin simple_auth.exe oauthcpp_simple_auth.exe
newbin simple_request.exe oauthcpp_simple_request.exe
}

PKG_NAMES="
${PN}
${PN}0
${PN}-devel
"
liboauthcpp_CONTENTS="
usr/bin/*.exe
usr/share
"
liboauthcpp0_CONTENTS="
usr/bin
usr/bin/cyg*-0.dll
"
liboauthcpp_devel_CONTENTS="
usr/include
usr/lib
"
liboauthcpp_SUMMARY="${SUMMARY} (licensing & readmes)"
liboauthcpp_SUMMARY="${SUMMARY} (utilities)"
liboauthcpp0_SUMMARY="${SUMMARY} (runtime)"
liboauthcpp_devel_SUMMARY="${SUMMARY} (development)"
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--- origsrc/liboauthcpp/build/CMakeLists.txt 2017-09-15 12:30:00.000000000 +0900
+++ src/liboauthcpp/build/CMakeLists.txt 2017-09-15 12:30:01.921655000 +0900
@@ -79,11 +79,12 @@ SET(LIBOAUTHCPP_LIB_SOURCES
--- origsrc/liboauthcpp/build/CMakeLists.txt 2025-01-25 18:19:28.000000000 +0900
+++ src/liboauthcpp/build/CMakeLists.txt 2025-01-25 18:28:25.774116700 +0900
@@ -79,11 +79,14 @@ SET(LIBOAUTHCPP_LIB_SOURCES
${LIBOAUTHCPP_SRC}/SHA1.cpp
${LIBOAUTHCPP_SRC}/urlencode.cpp
)
-ADD_LIBRARY(oauthcpp STATIC ${LIBOAUTHCPP_LIB_SOURCES})
+ADD_LIBRARY(oauthcpp SHARED ${LIBOAUTHCPP_LIB_SOURCES})
+SET_TARGET_PROPERTIES(oauthcpp PROPERTIES SOVERSION 0)
+if (DEFINED SOVERSION)
+ set_target_properties(oauthcpp PROPERTIES SOVERSION "${SOVERSION}")
+endif()
INSTALL(TARGETS oauthcpp
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
Expand All @@ -15,20 +17,19 @@
)
INSTALL(DIRECTORY
${LIBOAUTHCPP_INCLUDE}/ DESTINATION include
@@ -142,3 +143,11 @@ IF(LIBOAUTHCPP_BUILD_DEMOS)
@@ -142,3 +145,10 @@ IF(LIBOAUTHCPP_BUILD_DEMOS)
TARGET_LINK_LIBRARIES(simple_request oauthcpp)

ENDIF() #LIBOAUTHCPP_BUILD_DEMOS
+
+SET(prefix ${CMAKE_INSTALL_PREFIX})
+SET(exec_prefix ${CMAKE_INSTALL_PREFIX})
+SET(libdir ${CMAKE_INSTALL_PREFIX}/lib)
+SET(includedir ${CMAKE_INSTALL_PREFIX}/include)
+SET(VERSION "0")
+CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.pc.in ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc @ONLY)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
+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}/liboauthcpp.pc.in ${CMAKE_BINARY_DIR}/liboauthcpp.pc @ONLY)
+install(FILES ${CMAKE_BINARY_DIR}/liboauthcpp.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
--- origsrc/liboauthcpp/build/liboauthcpp.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/liboauthcpp/build/liboauthcpp.pc.in 2017-09-15 12:30:01.921655000 +0900
+++ src/liboauthcpp/build/liboauthcpp.pc.in 2025-01-25 18:28:17.782146300 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
Expand Down

0 comments on commit acb71b9

Please sign in to comment.