summaryrefslogtreecommitdiff
path: root/app-text/qtspell/qtspell-0.8.2-r1.ebuild
blob: 3d63acc6c602b5f4d0ac7c39be6d2023e233e102 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
EAPI=6
inherit cmake-utils

DESCRIPTION="Spell checking for Qt text widgets"
HOMEPAGE="https://github.com/manisandro/qtspell"
SRC_URI="https://github.com/manisandro/${PN}/releases/download/${PV}/qtspell-${PV}.tar.xz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="qt5"

DEPEND="app-text/enchant"

src_unpack()
{
  unpack "${A}"
  cd "${WORKDIR}"
  mv qtspell-${PV} ${P}
  if use qt5; then
    cd "${S}"
    sed -i "s/SET(USE_QT5 OFF/SET(USE_QT5 ON/" CMakeLists.txt
  fi
}