{"action":"created","comment":{"url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments/77188637","id":77188637,"diff_hunk":"@@ -0,0 +1,139 @@\n+##\n+# Copyright 2016 Forschungszentrum Juelich GmbH\n+#\n+# This file is part of EasyBuild,\n+# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),\n+# with support of Ghent University (http://ugent.be/hpc),\n+# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),\n+# Flemish Research Foundation (FWO) (http://www.fwo.be/en)\n+# and the Department of Economy, Science and Innovation (EWI) (http://www.ewi-vlaanderen.be/en).\n+#\n+# http://github.com/hpcugent/easybuild\n+#\n+# EasyBuild is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License as published by\n+# the Free Software Foundation v2.\n+#\n+# EasyBuild is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+# GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with EasyBuild.  If not, see <http://www.gnu.org/licenses/>.\n+##\n+\"\"\"\n+@author: Damian Alvarez (Forschungszentrum Juelich GmbH)\n+\"\"\"\n+import os\n+import shutil\n+\n+from easybuild.easyblocks.generic.configuremake import ConfigureMake\n+from easybuild.framework.easyconfig import CUSTOM\n+from easybuild.tools.build_log import EasyBuildError\n+from easybuild.tools.run import run_cmd\n+\n+\n+class EB_cppcheck(ConfigureMake):\n+    \"\"\"\n+    EasyBlock to install cppcheck\n+    \"\"\"\n+    \n+    @staticmethod\n+    def extra_options(extra_vars=None):\n+        \"\"\"\n+        Define if we are using rules or not, and if we are building the GUI\n+        \"\"\"\n+        extra = {\n+            'have_rules': [False, \"Use rules\", CUSTOM],\n+            'build_gui': [False, \"Build GUI\", CUSTOM],\n+        }\n+        if extra_vars is None:\n+            extra_vars = {}\n+        extra.update(extra_vars)\n+        return ConfigureMake.extra_options(extra_vars=extra)\n+\n+    def configure_step(self):\n+        \"\"\"\n+        Run qmake on the GUI, if necessary\n+        \"\"\"\n+        if self.cfg['build_gui']:\n+            cmd = 'qmake QMAKE_CXX=\"$CXX\" QMAKE_LINK=$CXX'\n+\n+            if self.cfg['have_rules']:\n+                cmd = ' '.join([cmd, 'HAVE_RULES=yes'])","path":"easybuild/easyblocks/c/cppcheck.py","position":64,"original_position":64,"commit_id":"bad423a0b8f4d37aa11a8699685817f53efa311d","original_commit_id":"bad423a0b8f4d37aa11a8699685817f53efa311d","user":{"login":"boegel","id":620876,"avatar_url":"https://avatars.githubusercontent.com/u/620876?v=3","gravatar_id":"","url":"https://api.github.com/users/boegel","html_url":"https://github.com/boegel","followers_url":"https://api.github.com/users/boegel/followers","following_url":"https://api.github.com/users/boegel/following{/other_user}","gists_url":"https://api.github.com/users/boegel/gists{/gist_id}","starred_url":"https://api.github.com/users/boegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boegel/subscriptions","organizations_url":"https://api.github.com/users/boegel/orgs","repos_url":"https://api.github.com/users/boegel/repos","events_url":"https://api.github.com/users/boegel/events{/privacy}","received_events_url":"https://api.github.com/users/boegel/received_events","type":"User","site_admin":false},"body":"The below is good enough here, but I won't nitpick over that ;)\r\n\r\n```python\r\ncmd += ' HAVE_RULES=yes'\r\n```","created_at":"2016-09-01T14:49:13Z","updated_at":"2016-09-01T14:49:13Z","html_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/983#discussion_r77188637","pull_request_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/983","_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments/77188637"},"html":{"href":"https://github.com/hpcugent/easybuild-easyblocks/pull/983#discussion_r77188637"},"pull_request":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/983"}}},"pull_request":{"url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/983","id":83507151,"html_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/983","diff_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/983.diff","patch_url":"https://github.com/hpcugent/easybuild-easyblocks/pull/983.patch","issue_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/983","number":983,"state":"open","locked":false,"title":"Added cppcheck easyblock","user":{"login":"damianam","id":10760206,"avatar_url":"https://avatars.githubusercontent.com/u/10760206?v=3","gravatar_id":"","url":"https://api.github.com/users/damianam","html_url":"https://github.com/damianam","followers_url":"https://api.github.com/users/damianam/followers","following_url":"https://api.github.com/users/damianam/following{/other_user}","gists_url":"https://api.github.com/users/damianam/gists{/gist_id}","starred_url":"https://api.github.com/users/damianam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianam/subscriptions","organizations_url":"https://api.github.com/users/damianam/orgs","repos_url":"https://api.github.com/users/damianam/repos","events_url":"https://api.github.com/users/damianam/events{/privacy}","received_events_url":"https://api.github.com/users/damianam/received_events","type":"User","site_admin":false},"body":"This easyblock enables the installation of cppcheck. The easyconfigs will be PR'ed when this gets accepted, I guess.","created_at":"2016-08-31T18:45:14Z","updated_at":"2016-09-01T14:49:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e431d2d56cc4ed5f7767e85d2f2a9512b4d849f7","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/milestones/28","html_url":"https://github.com/hpcugent/easybuild-easyblocks/milestones/v2.9.0","labels_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/milestones/28/labels","id":1758834,"number":28,"title":"v2.9.0","description":"","creator":{"login":"boegel","id":620876,"avatar_url":"https://avatars.githubusercontent.com/u/620876?v=3","gravatar_id":"","url":"https://api.github.com/users/boegel","html_url":"https://github.com/boegel","followers_url":"https://api.github.com/users/boegel/followers","following_url":"https://api.github.com/users/boegel/following{/other_user}","gists_url":"https://api.github.com/users/boegel/gists{/gist_id}","starred_url":"https://api.github.com/users/boegel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boegel/subscriptions","organizations_url":"https://api.github.com/users/boegel/orgs","repos_url":"https://api.github.com/users/boegel/repos","events_url":"https://api.github.com/users/boegel/events{/privacy}","received_events_url":"https://api.github.com/users/boegel/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":33,"state":"open","created_at":"2016-05-10T20:12:29Z","updated_at":"2016-09-01T14:45:19Z","due_on":"2016-09-14T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/983/commits","review_comments_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/983/comments","review_comment_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/983/comments","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/statuses/bad423a0b8f4d37aa11a8699685817f53efa311d","head":{"label":"damianam:cppcheck","ref":"cppcheck","sha":"bad423a0b8f4d37aa11a8699685817f53efa311d","user":{"login":"damianam","id":10760206,"avatar_url":"https://avatars.githubusercontent.com/u/10760206?v=3","gravatar_id":"","url":"https://api.github.com/users/damianam","html_url":"https://github.com/damianam","followers_url":"https://api.github.com/users/damianam/followers","following_url":"https://api.github.com/users/damianam/following{/other_user}","gists_url":"https://api.github.com/users/damianam/gists{/gist_id}","starred_url":"https://api.github.com/users/damianam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianam/subscriptions","organizations_url":"https://api.github.com/users/damianam/orgs","repos_url":"https://api.github.com/users/damianam/repos","events_url":"https://api.github.com/users/damianam/events{/privacy}","received_events_url":"https://api.github.com/users/damianam/received_events","type":"User","site_admin":false},"repo":{"id":46984921,"name":"easybuild-easyblocks","full_name":"damianam/easybuild-easyblocks","owner":{"login":"damianam","id":10760206,"avatar_url":"https://avatars.githubusercontent.com/u/10760206?v=3","gravatar_id":"","url":"https://api.github.com/users/damianam","html_url":"https://github.com/damianam","followers_url":"https://api.github.com/users/damianam/followers","following_url":"https://api.github.com/users/damianam/following{/other_user}","gists_url":"https://api.github.com/users/damianam/gists{/gist_id}","starred_url":"https://api.github.com/users/damianam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damianam/subscriptions","organizations_url":"https://api.github.com/users/damianam/orgs","repos_url":"https://api.github.com/users/damianam/repos","events_url":"https://api.github.com/users/damianam/events{/privacy}","received_events_url":"https://api.github.com/users/damianam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/damianam/easybuild-easyblocks","description":"Collection of easyblocks that implement support for building and installing software with EasyBuild.","fork":true,"url":"https://api.github.com/repos/damianam/easybuild-easyblocks","forks_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/forks","keys_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/teams","hooks_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/hooks","issue_events_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/issues/events{/number}","events_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/events","assignees_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/assignees{/user}","branches_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/branches{/branch}","tags_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/tags","blobs_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/statuses/{sha}","languages_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/languages","stargazers_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/stargazers","contributors_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/contributors","subscribers_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/subscribers","subscription_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/subscription","commits_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/contents/{+path}","compare_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/merges","archive_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/downloads","issues_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/issues{/number}","pulls_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/pulls{/number}","milestones_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/milestones{/number}","notifications_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/labels{/name}","releases_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/releases{/id}","deployments_url":"https://api.github.com/repos/damianam/easybuild-easyblocks/deployments","created_at":"2015-11-27T14:40:00Z","updated_at":"2015-11-27T14:40:02Z","pushed_at":"2016-09-01T14:43:29Z","git_url":"git://github.com/damianam/easybuild-easyblocks.git","ssh_url":"git@github.com:damianam/easybuild-easyblocks.git","clone_url":"https://github.com/damianam/easybuild-easyblocks.git","svn_url":"https://github.com/damianam/easybuild-easyblocks","homepage":"http://hpcugent.github.com/easybuild/","size":9101,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hpcugent:develop","ref":"develop","sha":"7e364f85365a46e13b8595f32205ef387e84bb9a","user":{"login":"hpcugent","id":1515263,"avatar_url":"https://avatars.githubusercontent.com/u/1515263?v=3","gravatar_id":"","url":"https://api.github.com/users/hpcugent","html_url":"https://github.com/hpcugent","followers_url":"https://api.github.com/users/hpcugent/followers","following_url":"https://api.github.com/users/hpcugent/following{/other_user}","gists_url":"https://api.github.com/users/hpcugent/gists{/gist_id}","starred_url":"https://api.github.com/users/hpcugent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpcugent/subscriptions","organizations_url":"https://api.github.com/users/hpcugent/orgs","repos_url":"https://api.github.com/users/hpcugent/repos","events_url":"https://api.github.com/users/hpcugent/events{/privacy}","received_events_url":"https://api.github.com/users/hpcugent/received_events","type":"Organization","site_admin":false},"repo":{"id":6228378,"name":"easybuild-easyblocks","full_name":"hpcugent/easybuild-easyblocks","owner":{"login":"hpcugent","id":1515263,"avatar_url":"https://avatars.githubusercontent.com/u/1515263?v=3","gravatar_id":"","url":"https://api.github.com/users/hpcugent","html_url":"https://github.com/hpcugent","followers_url":"https://api.github.com/users/hpcugent/followers","following_url":"https://api.github.com/users/hpcugent/following{/other_user}","gists_url":"https://api.github.com/users/hpcugent/gists{/gist_id}","starred_url":"https://api.github.com/users/hpcugent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpcugent/subscriptions","organizations_url":"https://api.github.com/users/hpcugent/orgs","repos_url":"https://api.github.com/users/hpcugent/repos","events_url":"https://api.github.com/users/hpcugent/events{/privacy}","received_events_url":"https://api.github.com/users/hpcugent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hpcugent/easybuild-easyblocks","description":"Collection of easyblocks that implement support for building and installing software with EasyBuild.","fork":false,"url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks","forks_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/forks","keys_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/teams","hooks_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/hooks","issue_events_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/events{/number}","events_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/events","assignees_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/assignees{/user}","branches_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/branches{/branch}","tags_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/tags","blobs_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/statuses/{sha}","languages_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/languages","stargazers_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/stargazers","contributors_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/contributors","subscribers_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/subscribers","subscription_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/subscription","commits_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/contents/{+path}","compare_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/merges","archive_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/downloads","issues_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues{/number}","pulls_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls{/number}","milestones_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/milestones{/number}","notifications_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/labels{/name}","releases_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/releases{/id}","deployments_url":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/deployments","created_at":"2012-10-15T14:31:19Z","updated_at":"2016-08-23T20:26:32Z","pushed_at":"2016-09-01T14:45:19Z","git_url":"git://github.com/hpcugent/easybuild-easyblocks.git","ssh_url":"git@github.com:hpcugent/easybuild-easyblocks.git","clone_url":"https://github.com/hpcugent/easybuild-easyblocks.git","svn_url":"https://github.com/hpcugent/easybuild-easyblocks","homepage":"http://hpcugent.github.com/easybuild/","size":10584,"stargazers_count":36,"watchers_count":36,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":123,"forks":107,"open_issues":123,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/983"},"html":{"href":"https://github.com/hpcugent/easybuild-easyblocks/pull/983"},"issue":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/983"},"comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/issues/983/comments"},"review_comments":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/983/comments"},"review_comment":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/pulls/983/commits"},"statuses":{"href":"https://api.github.com/repos/hpcugent/easybuild-easyblocks/statuses/bad423a0b8f4d37aa11a8699685817f53efa311d"}}}}
{"actor":{"display_login":"boegel"}}