summaryrefslogtreecommitdiff
path: root/sci-chemistry
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/Manifest.gzbin8208 -> 8208 bytes
-rw-r--r--sci-chemistry/gnome-chemistry-utils/Manifest3
-rw-r--r--sci-chemistry/gnome-chemistry-utils/files/gnome-chemistry-utils-fix_pointer_types.patch30
-rw-r--r--sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17_p6-r2.ebuild8
4 files changed, 37 insertions, 4 deletions
diff --git a/sci-chemistry/Manifest.gz b/sci-chemistry/Manifest.gz
index e511ad5ee570..c0159e598e8c 100644
--- a/sci-chemistry/Manifest.gz
+++ b/sci-chemistry/Manifest.gz
Binary files differ
diff --git a/sci-chemistry/gnome-chemistry-utils/Manifest b/sci-chemistry/gnome-chemistry-utils/Manifest
index 1c4c1feed099..688b32a6b985 100644
--- a/sci-chemistry/gnome-chemistry-utils/Manifest
+++ b/sci-chemistry/gnome-chemistry-utils/Manifest
@@ -1,4 +1,5 @@
+AUX gnome-chemistry-utils-fix_pointer_types.patch 1295 BLAKE2B 8e63f293480a5ccef0331850b2a1c69c608dcd50518fd9bca3fd84226a50ff92c1a20fbe547b1490c2959983ec908ebe1579b7ed3455ef62c89115a61db9769f SHA512 ebf12fffa69eaa5278c2fb65e87ce8314b5fa3e7dfeeb86185e02f08fe588c510da8ec71efbb020df3c11adf83f70143d2a01fafa1e04fc30494cd90f673904e
DIST gnome-chemistry-utils-0.14.17.tar.xz 5911248 BLAKE2B 5d3bb4afbe3d3f620912e810717f08674d56a11c384b1fb239788cfbbb625797e8c52de2b6d940ae7f3d83847533afedd6ed961b1fa0ea1cec62dda88de1a6df SHA512 01bb964e1484e028c5965f1de74798422b448823047fcadf668dc76e98b3e214939a2f031d0182c717c4376f490e5969a4604ee66d1763e6b480032d7ae97468
DIST gnome-chemistry-utils_0.14.17-6.debian.tar.xz 68528 BLAKE2B 2e4d318a5b91ca7963829c40c5d732a0ffa7fd9f4a32a6727f4926d2d4ec57989f50bd6839da49b4fa71dc533830bd0926205e952f08d04c08320e76ab51914c SHA512 8c6fad95c5d5e0895666fb9fb880364a9e3ab89761893b812c2cf835265acb40abe6b40def0960e1b38a0eea441310a3c1af608a2bcea37d5558533c9151e309
-EBUILD gnome-chemistry-utils-0.14.17_p6-r2.ebuild 1691 BLAKE2B ff8933db92a10d4eac0cbf4b781156e4ce6bed7c4fca7e67dc01b4ca47b5279ef49eba75ce4e01c42148c40dd3596b07df0fffd4fa347ed2522ae39019d75e85 SHA512 69b7c9890769ea5a93becd166bc10b3c4fd21b14bef2c2a7e06a1191447529e5851dbb60ade7d8d9f60365ce91c33c11b7c36b9f692b69a70ef1cf60902ba511
+EBUILD gnome-chemistry-utils-0.14.17_p6-r2.ebuild 1758 BLAKE2B b96f8cf3e2958df3f72332753befacc68f1a5e73124c3d885329d0732be0f095d27d6f01afbec3afcbb374bba0d305d00199ade1b18ac3e9b6c99ae1e4c0d245 SHA512 e6e417fdc870a33c27c0c4dcff14d3c671aa6ca27bf16d237367003ffeae0499a59a6cdb77e50a62c7a0350a2ebdae5f0e9aadaa8e0a50c9045581465da9af60
MISC metadata.xml 337 BLAKE2B f6895ff4b84e03d81d69b69efe05fc3bf246153e09afa56323c853c7b9b8e775d25173d24c82e2f2e66f5db42430c433e82940d91d47a99b51679af13b0d17ae SHA512 8a22e6a36ad43faeb635a12d977eed127f30f977915bfed2379b2187d33e05f2bbbc937977e168b47af5adb3fe26f964439d5d16e7a44dcd7f12faf7b84e60b1
diff --git a/sci-chemistry/gnome-chemistry-utils/files/gnome-chemistry-utils-fix_pointer_types.patch b/sci-chemistry/gnome-chemistry-utils/files/gnome-chemistry-utils-fix_pointer_types.patch
new file mode 100644
index 000000000000..256a008b9f7d
--- /dev/null
+++ b/sci-chemistry/gnome-chemistry-utils/files/gnome-chemistry-utils-fix_pointer_types.patch
@@ -0,0 +1,30 @@
+diff -Naur gnome-chemistry-utils-0.14.17_orig/libs/gccv/text.cc gnome-chemistry-utils-0.14.17_mod/libs/gccv/text.cc
+--- gnome-chemistry-utils-0.14.17_orig/libs/gccv/text.cc 2017-02-12 10:10:09.000000000 +0100
++++ gnome-chemistry-utils-0.14.17_mod/libs/gccv/text.cc 2024-09-02 22:58:57.724923903 +0200
+@@ -1126,7 +1126,7 @@
+ if (event->state & GDK_CONTROL_MASK) {
+ /* move to end of word */
+ char const* s = m_Text.c_str ();
+- char *p = g_utf8_next_char (s + m_CurPos);
++ char const* p = g_utf8_next_char (s + m_CurPos);
+ while (*p && (!g_unichar_isgraph (g_utf8_get_char(p)) || g_unichar_ispunct (g_utf8_get_char(p))))
+ p = g_utf8_next_char (p);
+ while (g_unichar_isgraph (g_utf8_get_char(p)) && !g_unichar_ispunct (g_utf8_get_char(p)))
+@@ -1137,7 +1137,7 @@
+ Invalidate ();
+ } else {
+ char const* s = m_Text.c_str ();
+- char *p = g_utf8_next_char (s + m_CurPos);
++ char const* p = g_utf8_next_char (s + m_CurPos);
+ if (!p)
+ break;
+ m_CurPos = p - s;
+@@ -1224,7 +1224,7 @@
+ if (m_CurPos == m_Text.length ())
+ break;
+ char const* s = m_Text.c_str ();
+- char *p = g_utf8_next_char (s + m_CurPos);
++ char const* p = g_utf8_next_char (s + m_CurPos);
+ int new_pos = p - s;
+ ReplaceText (empty_st, m_CurPos, new_pos - m_CurPos);
+ if (client)
diff --git a/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17_p6-r2.ebuild b/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17_p6-r2.ebuild
index 33d0e163eb2a..591709b1fa59 100644
--- a/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17_p6-r2.ebuild
+++ b/sci-chemistry/gnome-chemistry-utils/gnome-chemistry-utils-0.14.17_p6-r2.ebuild
@@ -10,10 +10,11 @@ SRC_URI="
http://download.savannah.gnu.org/releases/gchemutils/$(ver_cut 1-2)/${P/_p*}.tar.xz
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-${PV/*_p}.debian.tar.xz
"
+S="${WORKDIR}/${P/_p*}"
+LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-LICENSE="GPL-3"
IUSE="gnumeric"
RDEPEND="
@@ -38,8 +39,6 @@ BDEPEND="
virtual/pkgconfig
"
-S="${WORKDIR}/${P/_p*}"
-
src_prepare() {
default
@@ -52,6 +51,9 @@ src_prepare() {
eapply -p1 "${WORKDIR}/debian/patches/${p}"
done
+ # From Fedora
+ eapply "${FILESDIR}"/${PN}-fix_pointer_types.patch
+
eautoreconf
}