Repository: conan-io/conan-center-index

Issue:
cocoyaxi: make deprecated
Specify library name and version:  **cocoyaxi/***

---

- [x] I've read the [contributing guidelines](https://github.com/conan-io/conan-center-index/blob/master/CONTRIBUTING.md).
- [ ] I've used a [recent](https://github.com/conan-io/conan/releases/latest) Conan client version close to the [currently deployed](https://github.com/conan-io/conan-center-index/blob/master/.c3i/config_v1.yml#L6).
- [ ] I've tried at least one configuration locally with the [conan-center hook](https://github.com/conan-io/hooks.git) activated.



Discussion:
### Conan v1 pipeline :heavy_check_mark:

All green in build 1 (`ce2347dfed4881b1222a13dec9b158939a2f3b39`):

 * **cocoyaxi/2.0.3:**
   All packages built successfully! ([All logs](https://c3i.jfrog.io/c3i/misc/summary.html?json=https://c3i.jfrog.io/c3i/misc/logs/pr/20235/1/cocoyaxi/2.0.3//summary.json))

----------

### Conan v2 pipeline :x:

> **Note**: Conan v2 builds are now mandatory. Please read our [discussion](https://github.com/conan-io/conan-center-index/discussions/19104) about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping `@conan-io/barbarians` on the PR and we will help you.

<details>

<summary> See details: </summary>

Failure in build 1 (`ce2347dfed4881b1222a13dec9b158939a2f3b39`):

 * **cocoyaxi/2.0.3:**
   Error running command `conan graph info --requires cocoyaxi/2.0.3@#0f046150f3b1255c369c771fd046f592 -f json  -pr:h /home/conan/w/prod-v2/bsr/14749/eabcc/profile_windows_192_release_dynamic_14_msvc_release_64.-shared-True.txt -pr:b /home/conan/w/prod-v2/bsr/14749/eabcc/profile_windows_192_release_dynamic_14_msvc_release_64..txt`:
   ```
   ======== Computing dependency graph ========
   ERROR: cocoyaxi/2.0.3: Error in configure() method, line 41
   	del self.options.fPIC
   	ConanException: option 'fPIC' doesn't exist
   Possible options are ['shared', 'with_libcurl', 'with_openssl']
   ```

---

<sup>**Note:** To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.</sup>

</details>
<details>
<summary>Hooks produced the following warnings for commit ce2347dfed4881b1222a13dec9b158939a2f3b39</summary>

<details>
<summary>cocoyaxi/2.0.3@#0f046150f3b1255c369c771fd046f592</summary>

```
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libco.so' links to system library 'pthread' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libco.so' links to system library 'dl' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libco.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\co.dll' links to system library 'ws2_32' but it is not in cpp_info.system_libs.
```
</details>
</details>


Resolving patch:
diff --git a/recipes/cocoyaxi/all/conanfile.py b/recipes/cocoyaxi/all/conanfile.py
--- a/recipes/cocoyaxi/all/conanfile.py
+++ b/recipes/cocoyaxi/all/conanfile.py
@@ -30,6 +30,7 @@ class CocoyaxiConan(ConanFile):
         "with_libcurl": False,
         "with_openssl": False,
     }
+    deprecated = "coost"
 
     def config_options(self):
         if self.settings.os == "Windows":
@@ -37,13 +38,13 @@ def config_options(self):
 
     def configure(self):
         if self.options.shared:
-            del self.options.fPIC
+            self.options.rm_safe("fPIC")
 
     def requirements(self):
         if self.options.with_libcurl:
-            self.requires("libcurl/7.80.0")
+            self.requires("libcurl/8.2.1")
         if self.options.with_libcurl or self.options.with_openssl:
-            self.requires("openssl/1.1.1q")
+            self.requires("openssl/[>=1.1 <4]")
 
     def validate(self):
         if self.info.settings.compiler.cppstd:
@@ -95,3 +96,7 @@ def package_info(self):
             self.cpp_info.components["co"].requires.append("libcurl::libcurl")
         if self.options.with_libcurl or self.options.with_openssl:
             self.cpp_info.components["co"].requires.append("openssl::openssl")
+        if self.settings.os in ["Linux", "FreeBSD"]:
+            self.cpp_info.components["co"].system_libs.extend(["pthread", "dl", "m"])
+        elif self.settings.os == "Windows":
+            self.cpp_info.components["co"].system_libs.append("ws2_32")


Test patch: