From a6a9b65fda38a6f04bfb693e5e2be1b1701d2ef5 Mon Sep 17 00:00:00 2001 From: jongough Date: Sat, 13 Jun 2020 17:19:15 +1000 Subject: [PATCH 1/2] Update names used for cloudsmith --- CMakeLists.txt | 4 ++-- cmake/PluginSetup.cmake | 6 +++--- cmake/in-files/cloudsmith-upload.sh.in | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4120bdd5..602c5c23 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,8 +25,8 @@ set(PACKAGE "ocpn_draw") set(VERSION_MAJOR "1") set(VERSION_MINOR "8") set(VERSION_PATCH "0") -set(VERSION_TWEAK "7") -set(VERSION_DATE "10/06/2020") +set(VERSION_TWEAK "8") +set(VERSION_DATE "13/06/2020") set(OCPN_MIN_VERSION "ov50") set(OCPN_API_VERSION_MAJOR "1") set(OCPN_API_VERSION_MINOR "16") diff --git a/cmake/PluginSetup.cmake b/cmake/PluginSetup.cmake index fa3bcad9..ada40d4a 100644 --- a/cmake/PluginSetup.cmake +++ b/cmake/PluginSetup.cmake @@ -164,13 +164,13 @@ set(PKG_TARGET_NVR ${PKG_TARGET}-${PKG_TARGET_VERSION}) message(STATUS "${CMLOC}PluginSetup: PKG_TARGET: ${PKG_TARGET}, PKG_TARGET_VERSION: ${PKG_TARGET_VERSION}") if(DEFINED ENV{OCPN_TARGET}) - set(PACKAGING_NAME "${PKG_NVR}_${PKG_TARGET}-${ARCH}_${PKG_TARGET_VERSION}-$ENV{OCPN_TARGET}") + set(PACKAGING_NAME "${PKG_NVR}-${PKG_TARGET}-${ARCH}-${PKG_TARGET_VERSION}-$ENV{OCPN_TARGET}") else(DEFINED ENV{OCPN_TARGET}) - set(PACKAGING_NAME "${PKG_NVR}_${PKG_TARGET}-${ARCH}_${PKG_TARGET_VERSION}") + set(PACKAGING_NAME "${PKG_NVR}-${PKG_TARGET}-${ARCH}-${PKG_TARGET_VERSION}") endif(DEFINED ENV{OCPN_TARGET}) message(STATUS "${CMLOC}PACKAGING_NAME: ${PACKAGING_NAME}") -set(PLUGIN_NAME ${PACKAGE}-plugin-${PKG_TARGET}-${ARCH}_${PKG_TARGET_VERSION}) +set(PLUGIN_NAME ${PACKAGE}-plugin-${PKG_TARGET}-${ARCH}-${PKG_TARGET_VERSION}) if(Plugin_CXX11) message(STATUS "${CMLOC}Attempting to use c++11") diff --git a/cmake/in-files/cloudsmith-upload.sh.in b/cmake/in-files/cloudsmith-upload.sh.in index c5ba01fa..33557df0 100644 --- a/cmake/in-files/cloudsmith-upload.sh.in +++ b/cmake/in-files/cloudsmith-upload.sh.in @@ -104,9 +104,9 @@ echo $tarball_basename source $BUILD_DIR/pkg_version.sh if [ -n "${OCPN_TARGET}" ]; then - tarball_name=@PACKAGE_NAME@-@PACKAGE_VERSION@-${PKG_TARGET}-@ARCH@_${PKG_TARGET_VERSION}-${OCPN_TARGET}-tarball + tarball_name=@PACKAGE_NAME@-@PACKAGE_VERSION@-${PKG_TARGET}-@ARCH@-${PKG_TARGET_VERSION}-${OCPN_TARGET}-tarball else - tarball_name=@PACKAGE_NAME@-@PACKAGE_VERSION@-${PKG_TARGET}-@ARCH@_${PKG_TARGET_VERSION}-tarball + tarball_name=@PACKAGE_NAME@-@PACKAGE_VERSION@-${PKG_TARGET}-@ARCH@-${PKG_TARGET_VERSION}-tarball fi if [ "$(ls $BUILD_DIR/*.${PKG_EXT})" ]; then @@ -207,7 +207,7 @@ ls -la if [ $LOCAL_BUILD = false ]; then cloudsmith push raw --republish --no-wait-for-sync \ - --name @PACKAGE_NAME@-@PACKAGE_VERSION@-@PKG_TARGET@-@ARCH@_@PKG_TARGET_VERSION@-${OCPN_TARGET}-metadata \ + --name @PACKAGE_NAME@-@PACKAGE_VERSION@-@PKG_TARGET@-@ARCH@-@PKG_TARGET_VERSION@-${OCPN_TARGET}-metadata \ --version ${VERSION} \ --summary "@PACKAGE@ opencpn plugin metadata for automatic installation" \ $REPO $xml @@ -220,7 +220,7 @@ if [ $LOCAL_BUILD = false ]; then if [ "${PKG_EXT}" != "gz" ] && [ "$pkg" != "" ]; then cloudsmith push raw --republish --no-wait-for-sync \ - --name opencpn-package-@PACKAGE@-@PACKAGE_VERSION@-@PKG_TARGET@-@ARCH@_@PKG_TARGET_VERSION@-${OCPN_TARGET}.${PKG_EXT} \ + --name opencpn-package-@PACKAGE@-@PACKAGE_VERSION@-@PKG_TARGET@-@ARCH@-@PKG_TARGET_VERSION@-${OCPN_TARGET}.${PKG_EXT} \ --version ${VERSION} \ --summary "@PACKAGE@ .${PKG_EXT} installation package" \ $REPO $pkg From b86124940aff26fddada2a53c9869b412ab34f7d Mon Sep 17 00:00:00 2001 From: jongough Date: Sun, 14 Jun 2020 09:00:34 +1000 Subject: [PATCH 2/2] fix target name for darwin --- CMakeLists.txt | 4 ++-- cmake/PluginConfigure.cmake | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 602c5c23..38e2c7da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,8 +25,8 @@ set(PACKAGE "ocpn_draw") set(VERSION_MAJOR "1") set(VERSION_MINOR "8") set(VERSION_PATCH "0") -set(VERSION_TWEAK "8") -set(VERSION_DATE "13/06/2020") +set(VERSION_TWEAK "9") +set(VERSION_DATE "14/06/2020") set(OCPN_MIN_VERSION "ov50") set(OCPN_API_VERSION_MAJOR "1") set(OCPN_API_VERSION_MINOR "16") diff --git a/cmake/PluginConfigure.cmake b/cmake/PluginConfigure.cmake index 20b00e8c..d05aa29a 100644 --- a/cmake/PluginConfigure.cmake +++ b/cmake/PluginConfigure.cmake @@ -111,7 +111,7 @@ else() endif() message(STATUS "${CMLOC}PKG_TARGET_GTK: ${PKG_TARGET_GTK}") -if(UNIX) +if(UNIX AND NOT APPLE) # Handle gtk3 build variant string(STRIP "${PKG_TARGET}" PKG_TARGET) string(TOLOWER "${PKG_TARGET}" PKG_TARGET)