Skip to content

Commit

Permalink
(#5706) add ptz to header list and added new version (3.0.1)
Browse files Browse the repository at this point in the history
* add ptz to header list

* add ptz to header list

* add version 3.0.1

* add patch for version 3.0.1
  • Loading branch information
paulocoutinhox committed Jun 2, 2021
1 parent 7fd64fa commit 420d253
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/date/all/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ sources:
"3.0.0":
sha256: 87bba2eaf0ebc7ec539e5e62fc317cb80671a337c1fb1b84cb9e4d42c6dbebe3
url: https://github.com/HowardHinnant/date/archive/v3.0.0.tar.gz
"3.0.1":
sha256: 7a390f200f0ccd207e8cff6757e04817c1a0aec3e327b006b7eb451c57ee3538
url: https://github.com/HowardHinnant/date/archive/v3.0.1.tar.gz
patches:
"2.4.1":
- base_path: source_subfolder
Expand All @@ -16,3 +19,6 @@ patches:
"3.0.0":
- base_path: source_subfolder
patch_file: patches/cmake-3.0.0.patch
"3.0.1":
- base_path: source_subfolder
patch_file: patches/cmake-3.0.1.patch
3 changes: 3 additions & 0 deletions recipes/date/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def config_options(self):
del self.options.fPIC

def configure(self):
if self.options.shared:
del self.options.fPIC
if self.settings.compiler.cppstd:
tools.check_min_cppstd(self, "11")

Expand Down Expand Up @@ -87,6 +89,7 @@ def package(self):
dst = os.path.join("include", "date")
self.copy(pattern="date.h", dst=dst, src=src)
self.copy(pattern="tz.h", dst=dst, src=src)
self.copy(pattern="ptz.h", dst=dst, src=src)
self.copy(pattern="iso_week.h", dst=dst, src=src)
self.copy(pattern="julian.h", dst=dst, src=src)
self.copy(pattern="islamic.h", dst=dst, src=src)
Expand Down
14 changes: 14 additions & 0 deletions recipes/date/all/patches/cmake-3.0.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ad74900..ac390a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -156,6 +156,9 @@ if( BUILD_TZ_LIB )
target_include_directories( date-tz SYSTEM PRIVATE ${CURL_INCLUDE_DIRS} )
target_link_libraries( date-tz PRIVATE ${CURL_LIBRARIES} )
endif( )
+ if( DISABLE_STRING_VIEW )
+ target_compile_definitions( date-tz PRIVATE -DHAS_STRING_VIEW=0 -DHAS_DEDUCTION_GUIDES=0 )
+ endif( )
endif( )

#[===================================================================[
2 changes: 2 additions & 0 deletions recipes/date/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ versions:
folder: all
"3.0.0":
folder: all
"3.0.1":
folder: all

0 comments on commit 420d253

Please sign in to comment.