Package Details: cutemarked 20200625.r910-1

Git Clone URL: https://aur.archlinux.org/cutemarked.git (read-only, click to copy)
Package Base: cutemarked
Description: Qt Markdown Editor
Upstream URL: https://github.com/Waqar144/CuteMarkEd-NG
Licenses: GPL2
Submitter: nagy
Maintainer: None
Last Packager: haawda
Votes: 29
Popularity: 0.000001
First Submitted: 2013-09-29 19:36
Last Updated: 2020-09-05 17:29

Latest Comments

1 2 3 Next › Last »

ccorn commented on 2020-09-05 20:04

Some fixes: URLs, whitespace, and getting the submodules URL config right. (Note that hunspell has an extra subdir level, therefore I unrolled the loop.)

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,23 +12,23 @@ license=('GPL2')
 depends=('qt5-webengine')
 makedepends=('git' 'qt5-tools')
 source=("git+$url.git#commit=28c6ea8"
-   "git+https://github.com/hunspell/hunspell.git"
-   "git+https://github.com/mity/md4c"
-   "https://github.com/pbek/qmarkdowntextedit"
+        "git+https://github.com/hunspell/hunspell.git"
+        "git+https://github.com/mity/md4c.git"
+        "git+https://github.com/pbek/qmarkdowntextedit.git"
        )
 md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')

 pkgver() {
   cd $_gitname
-   printf "%s.r%s" $(git log -1 --format="%cd" --date=short | tr -d '-') $(git rev-list --count HEAD)
+  printf "%s.r%s" $(git log -1 --format="%cd" --date=short | tr -d '-') $(git rev-list --count HEAD)
 }

 prepare() {
   cd $_gitname
   git submodule init
-  for __submodule in hunspell md4c qmarkdowntextedit
-  do git config submodule.${__submodule}.url "$srcdir"/${_gitname}/3rdparty/${__submodule}
-  done
+  git config submodule.3rdparty/hunspell/hunspell.url "${srcdir}/hunspell"
+  git config submodule.3rdparty/md4c.url "${srcdir}/md4c"
+  git config submodule.3rdparty/qmarkdowntextedit.url "${srcdir}/qmarkdowntextedit"
   git submodule update
 }

talessx commented on 2020-02-28 06:47

HI, I can't compile:

/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’ 68 | class QAction; | ^~~~~~~ make[1]: [Makefile:1101: optionsdialog.o] Errore 1 make[1]: uscita dalla directory «/home/ale/.cache/pacaur/cutemarked/src/CuteMarkEd-0.11.3/app» make: [Makefile:128: sub-app-make_first] Errore 2 ==> ERRORE: Si è verificato un errore in build(). L'operazione sta per essere interrotta... :: discount è ora un pacchetto orfano :: Errore compilando il/i pacchetto/i cutemarked

LeOn83 commented on 2019-01-31 16:05

include <QAction> is missing in app/optionsdialog.cpp

for the prepare section:

sed -i -e '/#include <QTableWidgetItem>/a #include <QAction>' app/optionsdialog.cpp

dreieck commented on 2019-01-13 13:56

namcap says:

cutemarked E: Dependency hicolor-icon-theme detected and not included (needed for hicolor theme hierarchy)

dreieck commented on 2019-01-13 13:28

Build fails for me:

[...]
make[1]: Entering directory '/tmp/cutemarked/src/CuteMarkEd-0.11.3/app'
g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_WEBKITWIDGETS_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I. -I../libs/jsonconfig -I../app-static -I../libs -I../3rdparty/peg-markdown-highlight -isystem /usr/include/hunspell -isystem /usr/include/qt -isystem /usr/include/qt/QtWebKitWidgets -isystem /usr/include/qt/QtPrintSupport -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtWebKit -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -I. -isystem /usr/include/libdrm -I. -I/usr/lib/qt/mkspecs/linux-g++ -o optionsdialog.o optionsdialog.cpp
optionsdialog.cpp: In member function ‘void OptionsDialog::validateShortcut(int, int)’:
optionsdialog.cpp:221:46: error: invalid use of incomplete type ‘class QAction’
             new QTableWidgetItem(actions[row]->shortcut().toString()));
                                              ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:228:58: error: invalid use of incomplete type ‘class QAction’
                         new QTableWidgetItem(actions[row]->shortcut().toString()));
                                                          ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:229:129: error: invalid use of incomplete type ‘class QAction’
                     QMessageBox::information(this, tr("Conflict"), tr("This shortcut is already used for \"%1\"").arg(actions[c]->text().remove('&')));
                                                                                                                                 ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:237:40: error: invalid use of incomplete type ‘class QAction’
         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
                                        ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:237:88: error: expected primary-expression before ‘>’ token
         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
                                                                                        ^
optionsdialog.cpp:237:90: error: expected primary-expression before ‘)’ token
         font.setBold(ks != actions[row]->property("defaultshortcut").value<QKeySequence>());
                                                                                          ^
optionsdialog.cpp: In member function ‘void OptionsDialog::setupShortcutsTable()’:
optionsdialog.cpp:254:62: error: invalid use of incomplete type ‘class QAction’
         QTableWidgetItem *label = new QTableWidgetItem(action->text().remove('&'));
                                                              ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:256:51: error: invalid use of incomplete type ‘class QAction’
         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
                                                   ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:256:99: error: expected primary-expression before ‘>’ token
         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
                                                                                                   ^
optionsdialog.cpp:256:101: error: expected primary-expression before ‘)’ token
         const QKeySequence &defaultKeySeq = action->property("defaultshortcut").value<QKeySequence>();
                                                                                                     ^
optionsdialog.cpp:257:19: error: invalid use of incomplete type ‘class QAction’
         if (action->shortcut() != defaultKeySeq) {
                   ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:262:66: error: invalid use of incomplete type ‘class QAction’
         QTableWidgetItem *accel = new KeySequenceTableItem(action->shortcut());
                                                                  ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp: In member function ‘void OptionsDialog::readState()’:
optionsdialog.cpp:317:50: error: invalid use of incomplete type ‘class QAction’
         if (options->hasCustomShortcut(actions[i]->objectName())) {
                                                  ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp:318:101: error: invalid use of incomplete type ‘class QAction’
             ui->shortcutsTable->item(i, 1)->setData(Qt::EditRole, options->customShortcut(actions[i]->objectName()));
                                                                                                     ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
optionsdialog.cpp: In member function ‘void OptionsDialog::saveState()’:
optionsdialog.cpp:358:46: error: invalid use of incomplete type ‘class QAction’
         options->addCustomShortcut(actions[i]->objectName(), customKeySeq);
                                              ^~
In file included from /usr/include/qt/QtWidgets/qdialog.h:44,
                 from /usr/include/qt/QtWidgets/QDialog:1,
                 from optionsdialog.h:20,
                 from optionsdialog.cpp:17:
/usr/include/qt/QtWidgets/qwidget.h:68:7: note: forward declaration of ‘class QAction’
 class QAction;
       ^~~~~~~
make[1]: *** [Makefile:1619: optionsdialog.o] Error 1
make[1]: Leaving directory '/tmp/cutemarked/src/CuteMarkEd-0.11.3/app'
make: *** [Makefile:126: sub-app-make_first] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

It is the error as already reported on 2018-08-08 by @di72nn and works by inserting a #include <QAction> into app/optionsdialog.cpp.

@Esspy: Can you please incorporate this "patch", until upstream fixes it?

fawn commented on 2018-11-09 10:10

TO: di72nn Thanks, this patch is working.

di72nn commented on 2018-07-08 14:58

Hey!

Build fails: https://github.com/cloose/CuteMarkEd/issues/367

Adding the following seems to fix that: sed -i -e "20i#include <QAction>" app/optionsdialog.cpp

Esspy commented on 2016-07-02 16:33

to fix please make a patch on file discountmarkdownconverter.cpp. change initial options to

unsigned long converterOptions = MKD_TOC | MKD_NOSTYLE | MKD_FENCEDCODE;

I've added "|MKD_FENCEDCODE" to enable fencedcode again. now cutemarked render all md correctly.

cheers

Esspy commented on 2016-06-12 08:31

misrendering build-in snippets.

e.g.

~~~java
System.out.println(System.getProperty("java.version"));
~~~

renders to

<p><del>java
System.out.println(System.getProperty(&ldquo;java.version&rdquo;));
</del></p>

so every codeblock is strikedthrough.

Even downgrade discount to version 2.1.7 does not help.

JohnRobson commented on 2015-07-26 08:19

looking for conflicting packages...
:: discount and markdown are in conflict. Remove markdown? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: discount and markdown are in conflict

I need to remove markdown?!